Interesting Benchmarks
    Ignaz Birnstingl 
    ignazb at gmail.com
       
    Mon Nov  8 20:50:47 UTC 2021
    
    
  
Hi Eric,
> I would
> not have thought it possible to run 5,000,000 Platform Threads.
As far as I can tell by looking at your code you didn't. I think you  
submit the tasks sequentially to an ExecutorService created with  
Executors.newThreadPerTaskExecutor(). This causes many tasks (=threads) to  
end before the last one is submitted.
I would suggest you use a different (thread caching) ExecutorService for  
platform threads. Otherwise you are mainly measuring thread creation time  
of virtual threads vs platform threads.
Ignaz
    
    
More information about the loom-dev
mailing list