Relative Performance of Java's Garbage First (G1) Garbage Collector?

前端 未结 5 1977
你的背包
你的背包 2021-01-31 03:28

Does anyone know of any performance benchmarks of Java\'s new Garbage First (G1) Garbage Collector (as compared to the \"old\" GCs)?

In terms of GC pause times, Sun sta

5条回答
  •  死守一世寂寞
    2021-01-31 03:51

    We have just finished a series of testing over CMS and G1, using comparable ergonomics. This is product specific and very subjective, AND we're using Java 6 (so G1 is in the "preview" build) but...

    A system using CMS is 20% faster than G1. This was tested with 8GB and 12GB heap space, with 1GB and 1.5GB young space (respectively).

    Again - subjective, single system, specific load - but that's our experience.

提交回复
热议问题