Názor k článku Pohled pod kapotu JVM – základy optimalizace aplikací naprogramovaných v Javě (záhadná funkce System.arraycopy) od Pavel Tišnovský - Tak tady jsou pro zacatel vysledky pro: Intel(R) Xeon(R)...

  • Článek je starý, nové názory již nelze přidávat.
  • 22. 10. 2013 12:17

    Pavel Tišnovský
    Zlatý podporovatel

    Tak tady jsou pro zacatel vysledky pro:
    Intel(R) Xeon(R) CPU X3220 @ 2.40GHz

    java -server -XX:CompileThreshol­d=10000 -XX:-UseXMMForArrayCopy -XX:-UseUnalignedLo­adStores ArrayCopyTest2
    Warmup phase...
    0 1 2 3 4 5 6 7 8 9 done
    Method ArrayCopyTest2­.testArrayCopy1 time: 100,708,991 ns
    Method ArrayCopyTest2­.testArrayCopy2 time: 137,256,239 ns
    Method ArrayCopyTest2­.testArrayCopy3 time: 121,371,177 ns
    Method ArrayCopyTest2­.testArrayCopy4 time: 78,153,347 ns
    Method ArrayCopyTest2­.testArrayCopy5 time: 136,210,011 ns
    Method ArrayCopyTest2­.testArrayCopy6 time: 121,345,843 ns

    java -server -XX:CompileThreshol­d=10000 -XX:+UseXMMForA­rrayCopy -XX:-UseUnalignedLo­adStores ArrayCopyTest2
    Warmup phase...
    0 1 2 3 4 5 6 7 8 9 done
    Method ArrayCopyTest2­.testArrayCopy1 time: 100,502,913 ns
    Method ArrayCopyTest2­.testArrayCopy2 time: 137,067,723 ns
    Method ArrayCopyTest2­.testArrayCopy3 time: 121,365,836 ns
    Method ArrayCopyTest2­.testArrayCopy4 time: 78,151,333 ns
    Method ArrayCopyTest2­.testArrayCopy5 time: 136,215,355 ns
    Method ArrayCopyTest2­.testArrayCopy6 time: 121,342,873 ns

    java -server -XX:CompileThreshol­d=10000 -XX:-UseXMMForArrayCopy -XX:+UseUnalig­nedLoadStores ArrayCopyTest2
    Warmup phase...
    0 1 2 3 4 5 6 7 8 9 done
    Method ArrayCopyTest2­.testArrayCopy1 time: 116,575,323 ns
    Method ArrayCopyTest2­.testArrayCopy2 time: 158,186,271 ns
    Method ArrayCopyTest2­.testArrayCopy3 time: 159,060,561 ns
    Method ArrayCopyTest2­.testArrayCopy4 time: 115,436,567 ns
    Method ArrayCopyTest2­.testArrayCopy5 time: 156,915,770 ns
    Method ArrayCopyTest2­.testArrayCopy6 time: 158,959,367 ns

    java -server -XX:CompileThreshol­d=10000 -XX:+UseXMMForA­rrayCopy -XX:+UseUnalig­nedLoadStores ArrayCopyTest2
    Warmup phase...
    0 1 2 3 4 5 6 7 8 9 done
    Method ArrayCopyTest2­.testArrayCopy1 time: 116,566,568 ns
    Method ArrayCopyTest2­.testArrayCopy2 time: 158,254,976 ns
    Method ArrayCopyTest2­.testArrayCopy3 time: 159,073,464 ns
    Method ArrayCopyTest2­.testArrayCopy4 time: 115,399,695 ns
    Method ArrayCopyTest2­.testArrayCopy5 time: 156,926,495 ns
    Method ArrayCopyTest2­.testArrayCopy6 time: 158,962,351 ns