r/java • • Apr 06 '22

JEP 425: Virtual Threads (Preview)

https://openjdk.java.net/jeps/425
175 Upvotes

50 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Apr 06 '22

[deleted]

5

u/rbygrave Apr 06 '22

Not answering your question but ... in terms of park/unpark Loom operates at a lower level. I can't help but think that longer term that would provide Loom a performance advantage.

Is anyone out there doing a comparison or intending to do one?

For myself, I've only tested loom performance against async using JDK HttpClient, Loom came slightly out on top there but that was a while ago - need to redo that test.

0

u/[deleted] Apr 06 '22

[deleted]

1

u/rbygrave Apr 07 '22

Async implementation is provided by JDK Http client. Outline of the test is at https://avaje.io/http-client/#10k

I run this test against jetty using loom virtual threads, well whatever server you use it has to handle 10k requests.