Platform: MacBookPro5,3 (2.8 GHz Intel Core 2 Duo, 8 GB 1067 MHz DDR3)

org.openjdk.jmh.Main parameters: ".*" -i 10 -r 5 -wi 5 -w 1 -f 1

Benchmark                             Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testConstruction     avgt        10        0.428        0.005    us/op
o.s.Bench6375303.testToString         avgt        10        8.882        0.154    us/op

--- Baseline 1-thread ---

Benchmark                              Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testFirstToString     avgt        10     7099.798      162.401    ns/op
o.s.Bench6375303.testToString          avgt        10        4.716        0.069    ns/op

--- Baseline 4-threads ---

Benchmark                              Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testFirstToString     avgt        10    17479.544      177.959    ns/op
o.s.Bench6375303.testToString          avgt        10       10.295        0.088    ns/op

--- AtomicReference 1-thread ---

Benchmark                              Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testFirstToString     avgt        10     7164.655       59.505    ns/op
o.s.Bench6375303.testToString          avgt        10        4.878        0.019    ns/op

--- AtomicReference 4-threads ---

Benchmark                              Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testFirstToString     avgt        10    17780.951      164.980    ns/op
o.s.Bench6375303.testToString          avgt        10       10.682        0.120    ns/op

--- AtomicReferenceFieldUpdater 1-thread ---

Benchmark                              Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testFirstToString     avgt        10     7101.010       51.341    ns/op
o.s.Bench6375303.testToString          avgt        10        4.686        0.012    ns/op

--- AtomicReferenceFieldUpdater 4-threads ---

Benchmark                              Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testFirstToString     avgt        10    17627.991      214.126    ns/op
o.s.Bench6375303.testToString          avgt        10       10.045        0.162    ns/op

--- AtomicReferenceFieldUpdater v2 1-thread ---

Benchmark                              Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testFirstToString     avgt        10     7097.363      141.663    ns/op
o.s.Bench6375303.testToString          avgt        10        4.703        0.027    ns/op

--- AtomicReferenceFieldUpdater v2 4-threads ---

Benchmark                              Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testFirstToString     avgt        10    17851.461      142.107    ns/op
o.s.Bench6375303.testToString          avgt        10       10.452        0.507    ns/op

--- Baseline 1-thread (Random, not ThreadLocalRandom) ---

Benchmark                              Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testFirstToString     avgt        10     7030.543       32.436    ns/op
o.s.Bench6375303.testToString          avgt        10        4.683        0.020    ns/op

--- Baseline 4-threads (Random, not ThreadLocalRandom) ---

Benchmark                              Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testFirstToString     avgt        10    15640.252      249.898    ns/op
o.s.Bench6375303.testToString          avgt        10        9.583        0.069    ns/op

--- AtomicReferenceFieldUpdater v2 1-thread (Random, not ThreadLocalRandom) ---

Benchmark                              Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testFirstToString     avgt        10     7057.218       45.738    ns/op
o.s.Bench6375303.testToString          avgt        10        4.676        0.005    ns/op

--- AtomicReferenceFieldUpdater v2 4-threads (Random, not ThreadLocalRandom) ---

Benchmark                              Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testFirstToString     avgt        10    15615.710      157.805    ns/op
o.s.Bench6375303.testToString          avgt        10        9.586        0.066    ns/op

--- Peter L's version 1-thread (Random, not ThreadLocalRandom) ---

Benchmark                              Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testFirstToString     avgt        10     7069.258       65.360    ns/op
o.s.Bench6375303.testToString          avgt        10        4.676        0.006    ns/op

--- Peter L's version 4-threads (Random, not ThreadLocalRandom) ---

Benchmark                              Mode   Samples         Mean   Mean error    Units
o.s.Bench6375303.testFirstToString     avgt        10    15663.305      190.044    ns/op
o.s.Bench6375303.testToString          avgt        10        9.565        0.035    ns/op