You can take a look at here about how to speed up.
The default number of filter workers is 1, but you can increase this number with the '-w' flag on the agent.
For example, If your grok pattern is complex, you can use multiple filter worker(thread) to do the filter task and speed up logstash parsing the logs.