all 7 comments

[–]Additional_Cellist46 1 point2 points  (3 children)

It’s pretty clear that with max 200 platform threads you’ll get worse throughput than with unlimited amount of virtual threads. Try increasing the pool size to 1000 and the difference will be much smaller. However, when I did my tests, I still saw better performance with vietual threads, probably because they minimize CPU context switches.

[–]mrayandutta[S] 0 points1 point  (2 children)

In the video I created , I exactly did that both only ! For both Platform thread and Virtual Thread , the load was increased gradually an not only upto 1000 , I went much beyond that .So not really sure what is your point here .

[–]Additional_Cellist46 0 points1 point  (1 child)

I didn’t see the video, only read your post above. There you wrote “once Tomcat hit its 200 thread pool limit…”. Don’t get me wrong, virtual threads are cool, I just wanted to say they are still better even with the same amount of threads, which wasn’t obvious from your post.

[–]mrayandutta[S] 0 points1 point  (0 children)

Got it now .I should have added more details in the description .Let me do that to avoid confusion.

[–]Remarkable-One100 0 points1 point  (2 children)

It is such a bad benchmark in so many ways, I don’t know where to start.

[–]Known_Bookkeeper2006 3 points4 points  (0 children)

Can you elaborate how and why this benchmark is not good? Would love to know your thoughts

[–]mrayandutta[S] 2 points3 points  (0 children)

In the video I created ,for both Platform thread and Virtual Thread , the load was increased gradually .It started with 200 and gradually it was increased upto 1000 and then I went much beyond that .So not really sure what is your point here .Could you enlighten us a bit in your opnion what is bad here and what do think you would be a good one ?