The publisher in Beats will automatically batch multiple events together to then send a bulk request to Elasticsearch. Anything specific you discovered as a performance issue? Perhaps you can link to your code?
If you increase the queue size, more events will be queue in memory before sending to Elasticsearch. It does not directly affect the method.