Logstash taking too long to process data

My machine have 3 cores then I guess the worker threads should 3 which gives 17881576/3 =~ 5960525ms~99.34208333minutes. Which is still much.