2 ms·
Do i read correctly that in the ConstantHeapMemoryOccupancyBenchmark, ZGC delivers two operations per second? Two? Per second?! The test is just: void test(
by twic 7y ago
Do i read correctly that in the ConstantHeapMemoryOccupancyBenchmark, ZGC delivers two operations per second? Two? Per second?!
The test is just:
void test(Blackhole blackhole) {
blackhole.consume(new byte[_8_MB]);
}
So it's not like each "operation" is actually a large number of elementary operations, either.
- the8472 7y agoNo, the test is more than that. The preallocated objects matter because they are pathologic cases for certain GC operations. Large allocations compound this further. I guess CMS manages to perform fine here because it can flexibly resize the young generation and isn't region-based while G1 has special optimizations for what they call humongous allocations. It's a test that checks how collectors perform under two combined deviations from the assumptions for which they're optimized (i.e. that object graphs have a high branching level that allows parallelization, short-lived objects are small on average)