Sitemap

Bench marking Virtual Threads vs Thread Pool

Apr 3, 2024
Press enter or click to view image in full size

Comparing Thread Pools with Virtual threads, by submitting parallel operations to Executor service (Virtual and ThreadPool) with a same latency at 100 ms. using default config for virtual threads.

Code used to run the benchmark

Github — https://github.com/mraniketr/JavaThreadPoolBenchMark

Bench Mark Results

  1. ThreadPool size — 1000
Press enter or click to view image in full size

2. Thread Pool size — 4000

Press enter or click to view image in full size

--

--

No responses yet