/java-threads-vs-events

Some experiments to measure different approaches to threading

Primary LanguageScala

native

 2023  20    0  6364M  1081M uwait    0   2:44 268.80% java
 CPU: 44.7% user,  0.0% nice, 20.7% system,  7.3% interrupt, 27.4% idle
 902.5992686488297 MiB per second

loom

29  39    0  5746M   758M uwait    1   3:28 267.65% java
CPU: 43.4% user,  0.0% nice, 21.9% system,  7.2% interrupt, 27.6% idle
902.5992686488297 MiB per second

fs2

 84.9% user,  0.0% nice, 11.3% system,  3.6% interrupt,  0.1% idle
 31  24    0  5827M  1509M uwait    2   4:28 374.78% java
350.3627470980414 MiB per second