News for hackers. Stuff that matters.
Re:Four Years of Jai by immibis on Friday April 18, 2025 @06:18AM (#43726627)
Java's ZGC claims O(1) pause time of 0.05ms.

(As with any low-pause collector, the rest of your code is uniformly slower by some percentage because it has to make sure not to step on the toes of the concurrently-running collector.)

Re:Four Years of Jai by Ygg2 on Friday April 18, 2025 @07:28AM (#43727026)
> Java's ZGC claims O(1) pause time of 0.05ms

In practice it's actually closer to 10ms for large heaps. Large being around 220 GB.

Re:Four Years of Jai by riku_iki on Friday April 18, 2025 @11:58AM (#43729288)
With Java, the issue is that each allocated object carries significant memory footprint, as result total memory consumption is much higher compared to C++: https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
Re:Four Years of Jai by igouy on Saturday April 19, 2025 @11:26AM (#43737053)
The benchmarks game shows memory use with default GC settings (as a way to uncover space-time tradeoffs), mostly for tiny tiny programs that hardly use memory.

Less difference — mandelbrot, k-nucleotide, reverse-complement, regex-redux — when the task requires memory to be used.

Less with GraalVM native-image:

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

Re:Four Years of Jai by riku_iki on Saturday April 19, 2025 @11:34AM (#43737112)
> Less difference — mandelbrot, k-nucleotide, reverse-complement, regex-redux — when the task requires memory to be used.

yes, I referred to benchmarks with large memory consumption, where Java still uses from 2 to 10(as in binary tree task) more memory, which is large overhead.