A high throughput
The figure shows the throuput of the vmlens executor service compared to the standard JDK executor service for different threads on JDK 8.
The tradeoff is that latency is much higher than that of the standard JDK executor service.
The figure shows the latency of the vmlens executor service compared to the standard JDK executor service for different threads on JDK 8. All benchmarks were run with jmh on an intel i5 4core CPU. The source of the benchmark can be downloaded here.
To use the executor service simply create it with the static newHighThroughputExecutorService method. The method parameter specifies how many threads process the tasks in parallel. And then use it the same way as the JDK executor service.
ExecutorService executorService = VMLensExecutors.newHighThroughputExecutorService(5);
More from vmlens: