Re:How much faster is Java 17?
by vlovich123 on Wednesday September 15, 2021 @11:38AM
(#28540476)
I'm curious how the Shenandoah GC stacks up here.
[ Parent
| on HN ]
Re:How much faster is Java 17?
by darksaints on Wednesday September 15, 2021 @12:00PM
(#28540746)
Optaplanner is very much not the type of workload that would benefit from Shenandoah, which is optimized for reduced pause times and low latency. Optaplanner's most useful solvers do lots of garbage collection, so throughput considerations dominate significantly over latency concerns. You'd use G1, ZGC, or Shenandoah for web apis or trading platforms, but not for a computation heavy solver that is expected to not produce useful results for minutes or hours.
Re:How much faster is Java 17?
by marsdepinski on Wednesday September 15, 2021 @01:02PM
(#28541586)
Good clarification as I don't believe many JVM users realize that the various GCs have different use cases.
Agreed - but I 'll run the benchmarks anyway for a new blog post. Measuring is knowing.
OptaPlanner is best of with Parallel GC (high throughput), but most java processes (REST services etc) are much better off with G1GC (low latency) and its siblings (Shanandoah, Z GC).