JDK 11中将会加入令人惊叹的ZGC(不到2毫秒)( 二 )

那ZGC出现后就针对该问题予以优化,那优化到什么程度呢?JEP 333的wiki上给出了第一份benchmark,不得不说,这一份benchmark的表现让人惊叹,牛逼得不要不要的,牛逼到什么程度呢?来看数据:

128G内存

ZGC

avg: 1.091ms (+/-0.215ms)



95th percentile: 1.380ms

99th percentile: 1.512ms

99.9th percentile: 1.663ms

99.99th percentile: 1.681ms

max: 1.681ms





G1

avg: 156.806ms (+/-71.126ms)

95th percentile: 316.672ms

99th percentile: 428.095ms

99.9th percentile: 543.846ms

99.99th percentile: 543.846ms

max: 543.846ms

平均gc时长在1.091毫秒,方差为0.215毫秒,最长gc时长是1.681毫秒,不到2毫秒,就算是2毫秒吧,这意味着什么呢?