Hlavní navigace

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 a AMDcko, konkretne Quad-Core AMD Opteron(tm) Processor...

Článek je starý, nové názory již nelze přidávat.

  • 22. 10. 2013 16:06

    Pavel Tišnovský

    Tak a AMDcko, konkretne Quad-Core AMD Opteron(tm) Processor 2350 dava:

    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: 115,435,000 ns
    Method ArrayCopyTest2­.testArrayCopy2 time: 143,528,000 ns
    Method ArrayCopyTest2­.testArrayCopy3 time: 125,978,000 ns
    Method ArrayCopyTest2­.testArrayCopy4 time: 62,768,000 ns
    Method ArrayCopyTest2­.testArrayCopy5 time: 121,899,000 ns
    Method ArrayCopyTest2­.testArrayCopy6 time: 120,338,000 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: 116,356,000 ns
    Method ArrayCopyTest2­.testArrayCopy2 time: 132,203,000 ns
    Method ArrayCopyTest2­.testArrayCopy3 time: 126,103,000 ns
    Method ArrayCopyTest2­.testArrayCopy4 time: 64,035,000 ns
    Method ArrayCopyTest2­.testArrayCopy5 time: 123,759,000 ns
    Method ArrayCopyTest2­.testArrayCopy6 time: 122,152,000 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: 115,771,000 ns
    Method ArrayCopyTest2­.testArrayCopy2 time: 114,647,000 ns
    Method ArrayCopyTest2­.testArrayCopy3 time: 128,860,000 ns
    Method ArrayCopyTest2­.testArrayCopy4 time: 89,716,000 ns
    Method ArrayCopyTest2­.testArrayCopy5 time: 106,007,000 ns
    Method ArrayCopyTest2­.testArrayCopy6 time: 125,763,000 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: 118,603,000 ns
    Method ArrayCopyTest2­.testArrayCopy2 time: 128,957,000 ns
    Method ArrayCopyTest2­.testArrayCopy3 time: 135,683,000 ns
    Method ArrayCopyTest2­.testArrayCopy4 time: 90,829,000 ns
    Method ArrayCopyTest2­.testArrayCopy5 time: 107,602,000 ns
    Method ArrayCopyTest2­.testArrayCopy6 time: 127,586,000 ns