Skip to content

Instantly share code, notes, and snippets.

@vlsi
Created April 12, 2015 13:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vlsi/c4c0c6c6595f318e639a to your computer and use it in GitHub Desktop.
Save vlsi/c4c0c6c6595f318e639a to your computer and use it in GitHub Desktop.
HotspotAllocationProfilerTest output
# Run complete. Total time: 00:00:05
Benchmark Mode Cnt Score Error Units
HotspotAllocationProfilerTest.allocateObject avgt 4,297 ns/op
HotspotAllocationProfilerTest.allocateObject:·allocated avgt 16,002 B/op
HotspotAllocationProfilerTest.allocateObject:·allocation.rate avgt 3202,343 MB/sec
HotspotAllocationProfilerTest.allocateObjectSampleTime sample 15583 56,291 ± 3,064 ns/op
HotspotAllocationProfilerTest.allocateObjectSampleTime:·allocated sample 16,001 B/op
HotspotAllocationProfilerTest.allocateObjectSampleTime:·allocation.rate sample 1941,053 MB/sec
HotspotAllocationProfilerTest.allocateObjectSingleShot ss 5 1287,800 ± 302,336 ns/op
HotspotAllocationProfilerTest.allocateObjectSingleShot:·allocated ss 5 480,000 ± 0,001 B/op
HotspotAllocationProfilerTest.allocateObjectSingleShot:·allocation.rate ss 5 5,293 ± 5,232 MB/sec
# JMH 1.9-SNAPSHOT (released today)
# VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/bin/java
# VM options: -ea -Djmh.ignoreLock=true -Xms256m -Xmx256m -Didea.launcher.port=7534 -Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14.app/Contents/bin -Dfile.encoding=UTF-8
# Warmup: 2 iterations, 1 s each
# Measurement: 1 iterations, 1 ms each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: org.openjdk.jmh.it.profilers.HotspotAllocationProfilerTest.allocateObject
# Run progress: 0,00% complete, ETA 00:00:05
# Fork: 1 of 1
# Warmup Iteration 1: 4,808 ns/op
# Warmup Iteration 2: 4,906 ns/op
Iteration 1: 4,297 ns/op
·allocated: 16,002 B/op
·allocation.rate: 3202,343 MB/sec
Result "allocateObject":
4,297 ns/op
Secondary result "·allocated":
16,002 B/op
Secondary result "·allocation.rate":
3202,343 MB/sec
# JMH 1.9-SNAPSHOT (released today)
# VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/bin/java
# VM options: -ea -Djmh.ignoreLock=true -Xms256m -Xmx256m -Didea.launcher.port=7534 -Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14.app/Contents/bin -Dfile.encoding=UTF-8
# Warmup: 2 iterations, 1 s each
# Measurement: 1 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Sampling time
# Benchmark: org.openjdk.jmh.it.profilers.HotspotAllocationProfilerTest.allocateObjectSampleTime
# Run progress: 39,96% complete, ETA 00:00:03
# Fork: 1 of 1
# Warmup Iteration 1: n = 36287, mean = 82 ns/op, p{0.00, 0.50, 0.90, 0.95, 0.99, 0.999, 0.9999, 1.00} = 3, 38, 54, 72, 1326, 8994, 36154, 43840 ns/op
# Warmup Iteration 2: n = 18711, mean = 47 ns/op, p{0.00, 0.50, 0.90, 0.95, 0.99, 0.999, 0.9999, 1.00} = 25, 38, 61, 77, 124, 379, 10455, 10608 ns/op
Iteration 1: n = 15583, mean = 56 ns/op, p{0.00, 0.50, 0.90, 0.95, 0.99, 0.999, 0.9999, 1.00} = 27, 45, 81, 100, 153, 447, 9644, 10448 ns/op
·allocated: 16,001 B/op
·allocation.rate: 1941,053 MB/sec
Result "allocateObjectSampleTime":
56,291 ±(99.9%) 3,064 ns/op [Average]
(min, avg, max) = (27,000, 56,291, 10448,000), stdev = 116,213
CI (99.9%): [53,227, 59,355] (assumes normal distribution)
Samples, N = 15583
mean = 56,291 ±(99.9%) 3,064 ns/op
min = 27,000 ns/op
p( 0,0000) = 27,000 ns/op
p(50,0000) = 45,000 ns/op
p(90,0000) = 81,000 ns/op
p(95,0000) = 100,000 ns/op
p(99,0000) = 153,000 ns/op
p(99,9000) = 447,056 ns/op
p(99,9900) = 9643,904 ns/op
p(99,9990) = 10448,000 ns/op
p(99,9999) = 10448,000 ns/op
max = 10448,000 ns/op
Secondary result "·allocated":
16,001 B/op
Secondary result "·allocation.rate":
1941,053 MB/sec
# JMH 1.9-SNAPSHOT (released today)
# VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/bin/java
# VM options: -ea -Djmh.ignoreLock=true -Xms256m -Xmx256m -Didea.launcher.port=7534 -Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14.app/Contents/bin -Dfile.encoding=UTF-8
# Warmup: 2 iterations, single-shot each
# Measurement: 5 iterations, single-shot each
# Timeout: 10 min per iteration
# Threads: 1 thread
# Benchmark mode: Single shot invocation time
# Benchmark: org.openjdk.jmh.it.profilers.HotspotAllocationProfilerTest.allocateObjectSingleShot
# Run progress: 99,86% complete, ETA 00:00:00
# Fork: 1 of 1
# Warmup Iteration 1: 15481,000 ns/op
# Warmup Iteration 2: 1143,000 ns/op
Iteration 1: 1370,000 ns/op
·allocated: 480,000 B/op
·allocation.rate: 2,890 MB/sec
Iteration 2: 1302,000 ns/op
·allocated: 480,000 B/op
·allocation.rate: 5,588 MB/sec
Iteration 3: 1353,000 ns/op
·allocated: 480,000 B/op
·allocation.rate: 6,068 MB/sec
Iteration 4: 1193,000 ns/op
·allocated: 480,000 B/op
·allocation.rate: 6,097 MB/sec
Iteration 5: 1221,000 ns/op
·allocated: 480,000 B/op
·allocation.rate: 5,821 MB/sec
Result "allocateObjectSingleShot":
1287,800 ±(99.9%) 302,336 ns/op [Average]
(min, avg, max) = (1193,000, 1287,800, 1370,000), stdev = 78,516
CI (99.9%): [985,464, 1590,136] (assumes normal distribution)
Samples, N = 5
mean = 1287,800 ±(99.9%) 302,336 ns/op
min = 1193,000 ns/op
p( 0,0000) = 1193,000 ns/op
p(50,0000) = 1302,000 ns/op
p(90,0000) = 1370,000 ns/op
p(95,0000) = 1370,000 ns/op
p(99,0000) = 1370,000 ns/op
p(99,9000) = 1370,000 ns/op
p(99,9900) = 1370,000 ns/op
p(99,9990) = 1370,000 ns/op
p(99,9999) = 1370,000 ns/op
max = 1370,000 ns/op
Secondary result "·allocated":
480,000 ±(99.9%) 0,001 B/op [Average]
(min, avg, max) = (480,000, 480,000, 480,000), stdev = 0,001
CI (99.9%): [480,000, 480,000] (assumes normal distribution)
Secondary result "·allocation.rate":
5,293 ±(99.9%) 5,232 MB/sec [Average]
(min, avg, max) = (2,890, 5,293, 6,097), stdev = 1,359
CI (99.9%): [0,061, 10,525] (assumes normal distribution)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment