Skip to content

Instantly share code, notes, and snippets.

@Janmm14
Last active June 21, 2021 13:34
Show Gist options
  • Save Janmm14/b75fd02ee185e4b6c593dad1a68c7376 to your computer and use it in GitHub Desktop.
Save Janmm14/b75fd02ee185e4b6c593dad1a68c7376 to your computer and use it in GitHub Desktop.
test with single EventBus and multiple listener
Reflection: Lambda:
Benchmark Mode Cnt Score Error Units Score Error Units
SpeedTest.bench01_Blackhole thrpt 5 48064,567 ± 55,784 ops/ms 93798,913 ± 213,667 ops/ms
SpeedTest.bench02_Event thrpt 5 655503,761 ± 1342,351 ops/ms 654931,456 ± 3083,924 ops/ms
SpeedTest.bench03_Event2 thrpt 5 44431,706 ± 32,547 ops/ms 85067,792 ± 72,630 ops/ms
SpeedTest.bench03a_Event2 thrpt 5 218672,952 ± 205,582 ops/ms 218664,236 ± 338,707 ops/ms
SpeedTest.bench03b_Event2 thrpt 5 258171,070 ± 116,473 ops/ms 258216,421 ± 230,563 ops/ms
SpeedTest.bench04_EventNew thrpt 5 44607,214 ± 256,196 ops/ms 89673,637 ± 26,580 ops/ms
SpeedTest.bench04a_New thrpt 5 392437,699 ± 641,088 ops/ms 392637,013 ± 123,884 ops/ms
SpeedTest.bench05_2Event3 thrpt 5 24723,423 ± 11,480 ops/ms 33910,943 ± 214,464 ops/ms
SpeedTest.bench06_2Event_ thrpt 5 45845,187 ± 42,573 ops/ms 82771,543 ± 517,892 ops/ms
SpeedTest.bench07_2Event2 thrpt 5 45295,446 ± 54,199 ops/ms 81134,652 ± 357,770 ops/ms
SpeedTest.bench08_2Event thrpt 5 45375,708 ± 72,212 ops/ms 77456,444 ± 120,444 ops/ms
SpeedTest.bench09_3 thrpt 5 22739,847 ± 29,426 ops/ms 30940,975 ± 88,210 ops/ms
SpeedTest.bench09a_3_2 thrpt 5 22735,755 ± 18,364 ops/ms 29403,884 ± 73,455 ops/ms
SpeedTest.bench10_3_3 thrpt 5 42791,118 ± 52,932 ops/ms 74433,647 ± 428,027 ops/ms
package net.md_5;
import java.util.concurrent.TimeUnit;
import net.md_5.bungee.event.EventBus;
import net.md_5.bungee.event.EventHandler;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.CompilerControl;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Measurement;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.annotations.TearDown;
import org.openjdk.jmh.annotations.Warmup;
import org.openjdk.jmh.infra.Blackhole;
import org.openjdk.jmh.infra.Control;
@Fork(1)
@State(Scope.Benchmark)
@BenchmarkMode(Mode.Throughput)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@Warmup(iterations = 4, time = 5)
@Measurement(iterations = 5, time = 10)
public class SpeedTest
{
public static EventBus bus = new EventBus();
public static Blackhole blackhole;
@Setup
public void setup(Blackhole blackhole)
{
SpeedTest.blackhole = blackhole;
bus.register( new EvListener() );
bus.register( new EvListener2() );
bus.register( new EvListener3() );
}
@Benchmark
public void bench01_Blackhole(Blackhole event)
{
bus.post( event );
}
@Benchmark
public void bench02_Event(Event event)
{
bus.post( event );
}
@Benchmark
public void bench03_Event2()
{
bus.post( new Event2( System.currentTimeMillis() ) );
}
@Benchmark
public void bench03a_Event2(Blackhole blackhole)
{
blackhole.consume( new Event2( System.currentTimeMillis() ) );
}
@Benchmark
public void bench03b_Event2(Blackhole blackhole)
{
blackhole.consume( System.currentTimeMillis() );
}
@Benchmark
public void bench04_EventNew()
{
bus.post( new Event3() );
}
@Benchmark
public void bench04a_New(Blackhole blackhole)
{
blackhole.consume( new Event3() );
}
// reflection:
// lambda :
@Benchmark
public void bench05_2Event3(Blackhole blackhole)
{
bus.post( blackhole );
bus.post( new Event3() );
}
@Benchmark
public void bench06_2Event_(Blackhole blackhole, Event event)
{
bus.post( blackhole );
bus.post( event );
}
@Benchmark
public void bench07_2Event2(Control notListened, Blackhole blackhole)
{
bus.post( blackhole );
bus.post( notListened );
}
@Benchmark
public void bench08_2Event(Event event, Blackhole blackhole)
{
bus.post( event );
bus.post( blackhole );
}
@Benchmark
public void bench09_3(Event event, Blackhole blackhole)
{
bus.post( event );
bus.post( new Event2( System.currentTimeMillis() ) );
bus.post( blackhole );
}
@Benchmark
public void bench09a_3_2(Event event, Blackhole blackhole)
{
bus.post( event );
bus.post( blackhole );
bus.post( new Event2( System.currentTimeMillis() ) );
}
@Benchmark
public void bench10_3_3(Event event, Event event_, Blackhole blackhole)
{
bus.post( event );
bus.post( blackhole );
bus.post( event_ );
}
@State(Scope.Thread)
public static class Event
{
}
public static class Event2
{
private long l;
public Event2(long l)
{
this.l = l;
}
}
public static class Event3
{
}
public static class Event4
{
}
@SuppressWarnings("BungeeCordListenerImplemented")
public static class EvListener
{
@EventHandler
@CompilerControl(CompilerControl.Mode.DONT_INLINE)
public void onEvent(Event event)
{
SpeedTest.blackhole.consume( event );
}
@EventHandler
@CompilerControl(CompilerControl.Mode.DONT_INLINE)
public void onEvent(Event2 event)
{
SpeedTest.blackhole.consume( event.l );
}
@EventHandler
@CompilerControl(CompilerControl.Mode.DONT_INLINE)
public void onEvent(Event3 event)
{
SpeedTest.blackhole.consume( event );
}
@EventHandler
@CompilerControl(CompilerControl.Mode.DONT_INLINE)
public void onEvent(Blackhole event)
{
event.consume( event );
}
@EventHandler
@CompilerControl(CompilerControl.Mode.DONT_INLINE)
public void onEvent(Event4 event)
{
SpeedTest.blackhole.consume( event );
}
}
@SuppressWarnings("BungeeCordListenerImplemented")
public static class EvListener2
{
@EventHandler
@CompilerControl(CompilerControl.Mode.DONT_INLINE)
public void event(Event event)
{
SpeedTest.blackhole.consume( event );
}
@EventHandler
@CompilerControl(CompilerControl.Mode.DONT_INLINE)
public void event2(Event2 event)
{
SpeedTest.blackhole.consume( event.l );
}
@EventHandler
@CompilerControl(CompilerControl.Mode.DONT_INLINE)
public void blackhole(Blackhole event)
{
event.consume( event );
}
@EventHandler
@CompilerControl(CompilerControl.Mode.DONT_INLINE)
public void event3(Event3 event)
{
SpeedTest.blackhole.consume( event );
}
@EventHandler
@CompilerControl(CompilerControl.Mode.DONT_INLINE)
public void event4(Event4 event)
{
SpeedTest.blackhole.consume( event );
}
}
@SuppressWarnings("BungeeCordListenerImplemented")
public static class EvListener3
{
@EventHandler
@CompilerControl(CompilerControl.Mode.DONT_INLINE)
public void event4(Event4 event)
{
SpeedTest.blackhole.consume( event );
}
}
}
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench01_Blackhole
# Run progress: 0,00% complete, ETA 00:16:20
# Fork: 1 of 1
# Warmup Iteration 1: 65378,368 ops/ms
# Warmup Iteration 2: 45449,924 ops/ms
# Warmup Iteration 3: 48038,909 ops/ms
# Warmup Iteration 4: 48012,273 ops/ms
Iteration 1: 48068,496 ops/ms
Iteration 2: 48068,182 ops/ms
Iteration 3: 48075,195 ops/ms
Iteration 4: 48039,158 ops/ms
Iteration 5: 48071,805 ops/ms
Result "net.md_5.SpeedTest.bench01_Blackhole":
48064,567 ±(99.9%) 55,784 ops/ms [Average]
(min, avg, max) = (48039,158, 48064,567, 48075,195), stdev = 14,487
CI (99.9%): [48008,783, 48120,352] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench02_Event
# Run progress: 7,14% complete, ETA 00:15:14
# Fork: 1 of 1
# Warmup Iteration 1: 464010,049 ops/ms
# Warmup Iteration 2: 440735,128 ops/ms
# Warmup Iteration 3: 655554,825 ops/ms
# Warmup Iteration 4: 655358,038 ops/ms
Iteration 1: 655400,524 ops/ms
Iteration 2: 656050,692 ops/ms
Iteration 3: 655438,922 ops/ms
Iteration 4: 655538,317 ops/ms
Iteration 5: 655090,348 ops/ms
Result "net.md_5.SpeedTest.bench02_Event":
655503,761 ±(99.9%) 1342,351 ops/ms [Average]
(min, avg, max) = (655090,348, 655503,761, 656050,692), stdev = 348,604
CI (99.9%): [654161,410, 656846,112] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench03_Event2
# Run progress: 14,29% complete, ETA 00:14:03
# Fork: 1 of 1
# Warmup Iteration 1: 61656,103 ops/ms
# Warmup Iteration 2: 44457,476 ops/ms
# Warmup Iteration 3: 44424,243 ops/ms
# Warmup Iteration 4: 44428,222 ops/ms
Iteration 1: 44434,651 ops/ms
Iteration 2: 44425,155 ops/ms
Iteration 3: 44421,971 ops/ms
Iteration 4: 44433,352 ops/ms
Iteration 5: 44443,399 ops/ms
Result "net.md_5.SpeedTest.bench03_Event2":
44431,706 ±(99.9%) 32,547 ops/ms [Average]
(min, avg, max) = (44421,971, 44431,706, 44443,399), stdev = 8,452
CI (99.9%): [44399,159, 44464,253] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench03a_Event2
# Run progress: 21,43% complete, ETA 00:12:53
# Fork: 1 of 1
# Warmup Iteration 1: 215167,304 ops/ms
# Warmup Iteration 2: 217839,053 ops/ms
# Warmup Iteration 3: 218659,135 ops/ms
# Warmup Iteration 4: 218634,068 ops/ms
Iteration 1: 218644,623 ops/ms
Iteration 2: 218615,438 ops/ms
Iteration 3: 218652,681 ops/ms
Iteration 4: 218751,008 ops/ms
Iteration 5: 218701,012 ops/ms
Result "net.md_5.SpeedTest.bench03a_Event2":
218672,952 ±(99.9%) 205,582 ops/ms [Average]
(min, avg, max) = (218615,438, 218672,952, 218751,008), stdev = 53,389
CI (99.9%): [218467,371, 218878,534] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench03b_Event2
# Run progress: 28,57% complete, ETA 00:11:43
# Fork: 1 of 1
# Warmup Iteration 1: 244439,733 ops/ms
# Warmup Iteration 2: 258109,093 ops/ms
# Warmup Iteration 3: 258195,251 ops/ms
# Warmup Iteration 4: 258194,213 ops/ms
Iteration 1: 258191,748 ops/ms
Iteration 2: 258177,412 ops/ms
Iteration 3: 258200,132 ops/ms
Iteration 4: 258162,711 ops/ms
Iteration 5: 258123,347 ops/ms
Result "net.md_5.SpeedTest.bench03b_Event2":
258171,070 ±(99.9%) 116,473 ops/ms [Average]
(min, avg, max) = (258123,347, 258171,070, 258200,132), stdev = 30,248
CI (99.9%): [258054,597, 258287,543] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench04_EventNew
# Run progress: 35,71% complete, ETA 00:10:33
# Fork: 1 of 1
# Warmup Iteration 1: 68977,256 ops/ms
# Warmup Iteration 2: 47186,644 ops/ms
# Warmup Iteration 3: 44510,375 ops/ms
# Warmup Iteration 4: 44573,605 ops/ms
Iteration 1: 44538,038 ops/ms
Iteration 2: 44718,182 ops/ms
Iteration 3: 44589,345 ops/ms
Iteration 4: 44594,227 ops/ms
Iteration 5: 44596,276 ops/ms
Result "net.md_5.SpeedTest.bench04_EventNew":
44607,214 ±(99.9%) 256,196 ops/ms [Average]
(min, avg, max) = (44538,038, 44607,214, 44718,182), stdev = 66,533
CI (99.9%): [44351,018, 44863,409] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench04a_New
# Run progress: 42,86% complete, ETA 00:09:22
# Fork: 1 of 1
# Warmup Iteration 1: 289913,923 ops/ms
# Warmup Iteration 2: 293337,815 ops/ms
# Warmup Iteration 3: 392486,588 ops/ms
# Warmup Iteration 4: 392531,564 ops/ms
Iteration 1: 392149,412 ops/ms
Iteration 2: 392550,751 ops/ms
Iteration 3: 392485,405 ops/ms
Iteration 4: 392453,627 ops/ms
Iteration 5: 392549,297 ops/ms
Result "net.md_5.SpeedTest.bench04a_New":
392437,699 ±(99.9%) 641,088 ops/ms [Average]
(min, avg, max) = (392149,412, 392437,699, 392550,751), stdev = 166,489
CI (99.9%): [391796,610, 393078,787] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench05_2Event3
# Run progress: 50,00% complete, ETA 00:08:12
# Fork: 1 of 1
# Warmup Iteration 1: 25786,282 ops/ms
# Warmup Iteration 2: 24518,239 ops/ms
# Warmup Iteration 3: 24724,762 ops/ms
# Warmup Iteration 4: 24717,366 ops/ms
Iteration 1: 24725,593 ops/ms
Iteration 2: 24723,822 ops/ms
Iteration 3: 24726,923 ops/ms
Iteration 4: 24720,308 ops/ms
Iteration 5: 24720,468 ops/ms
Result "net.md_5.SpeedTest.bench05_2Event3":
24723,423 ±(99.9%) 11,480 ops/ms [Average]
(min, avg, max) = (24720,308, 24723,423, 24726,923), stdev = 2,981
CI (99.9%): [24711,942, 24734,903] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench06_2Event_
# Run progress: 57,14% complete, ETA 00:07:01
# Fork: 1 of 1
# Warmup Iteration 1: 60242,659 ops/ms
# Warmup Iteration 2: 44921,005 ops/ms
# Warmup Iteration 3: 45818,750 ops/ms
# Warmup Iteration 4: 45815,795 ops/ms
Iteration 1: 45838,966 ops/ms
Iteration 2: 45852,933 ops/ms
Iteration 3: 45838,533 ops/ms
Iteration 4: 45834,851 ops/ms
Iteration 5: 45860,651 ops/ms
Result "net.md_5.SpeedTest.bench06_2Event_":
45845,187 ±(99.9%) 42,573 ops/ms [Average]
(min, avg, max) = (45834,851, 45845,187, 45860,651), stdev = 11,056
CI (99.9%): [45802,614, 45887,760] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench07_2Event2
# Run progress: 64,29% complete, ETA 00:05:51
# Fork: 1 of 1
# Warmup Iteration 1: 65083,004 ops/ms
# Warmup Iteration 2: 44620,160 ops/ms
# Warmup Iteration 3: 45277,631 ops/ms
# Warmup Iteration 4: 45278,621 ops/ms
Iteration 1: 45305,132 ops/ms
Iteration 2: 45309,417 ops/ms
Iteration 3: 45273,665 ops/ms
Iteration 4: 45290,816 ops/ms
Iteration 5: 45298,202 ops/ms
Result "net.md_5.SpeedTest.bench07_2Event2":
45295,446 ±(99.9%) 54,199 ops/ms [Average]
(min, avg, max) = (45273,665, 45295,446, 45309,417), stdev = 14,075
CI (99.9%): [45241,247, 45349,645] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench08_2Event
# Run progress: 71,43% complete, ETA 00:04:41
# Fork: 1 of 1
# Warmup Iteration 1: 63955,424 ops/ms
# Warmup Iteration 2: 45475,248 ops/ms
# Warmup Iteration 3: 45404,856 ops/ms
# Warmup Iteration 4: 45359,184 ops/ms
Iteration 1: 45374,456 ops/ms
Iteration 2: 45384,902 ops/ms
Iteration 3: 45384,193 ops/ms
Iteration 4: 45391,093 ops/ms
Iteration 5: 45343,897 ops/ms
Result "net.md_5.SpeedTest.bench08_2Event":
45375,708 ±(99.9%) 72,212 ops/ms [Average]
(min, avg, max) = (45343,897, 45375,708, 45391,093), stdev = 18,753
CI (99.9%): [45303,496, 45447,920] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench09_3
# Run progress: 78,57% complete, ETA 00:03:30
# Fork: 1 of 1
# Warmup Iteration 1: 24192,368 ops/ms
# Warmup Iteration 2: 22548,257 ops/ms
# Warmup Iteration 3: 22743,244 ops/ms
# Warmup Iteration 4: 22742,036 ops/ms
Iteration 1: 22741,056 ops/ms
Iteration 2: 22744,699 ops/ms
Iteration 3: 22743,691 ops/ms
Iteration 4: 22743,403 ops/ms
Iteration 5: 22726,387 ops/ms
Result "net.md_5.SpeedTest.bench09_3":
22739,847 ±(99.9%) 29,426 ops/ms [Average]
(min, avg, max) = (22726,387, 22739,847, 22744,699), stdev = 7,642
CI (99.9%): [22710,421, 22769,273] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench09a_3_2
# Run progress: 85,71% complete, ETA 00:02:20
# Fork: 1 of 1
# Warmup Iteration 1: 23955,085 ops/ms
# Warmup Iteration 2: 23187,320 ops/ms
# Warmup Iteration 3: 22735,475 ops/ms
# Warmup Iteration 4: 22738,913 ops/ms
Iteration 1: 22730,584 ops/ms
Iteration 2: 22736,030 ops/ms
Iteration 3: 22739,351 ops/ms
Iteration 4: 22741,424 ops/ms
Iteration 5: 22731,386 ops/ms
Result "net.md_5.SpeedTest.bench09a_3_2":
22735,755 ±(99.9%) 18,364 ops/ms [Average]
(min, avg, max) = (22730,584, 22735,755, 22741,424), stdev = 4,769
CI (99.9%): [22717,392, 22754,119] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench10_3_3
# Run progress: 92,86% complete, ETA 00:01:10
# Fork: 1 of 1
# Warmup Iteration 1: 62555,322 ops/ms
# Warmup Iteration 2: 39959,469 ops/ms
# Warmup Iteration 3: 42799,703 ops/ms
# Warmup Iteration 4: 42810,692 ops/ms
Iteration 1: 42804,322 ops/ms
Iteration 2: 42799,491 ops/ms
Iteration 3: 42769,788 ops/ms
Iteration 4: 42796,302 ops/ms
Iteration 5: 42785,685 ops/ms
Result "net.md_5.SpeedTest.bench10_3_3":
42791,118 ±(99.9%) 52,932 ops/ms [Average]
(min, avg, max) = (42769,788, 42791,118, 42804,322), stdev = 13,746
CI (99.9%): [42738,186, 42844,050] (assumes normal distribution)
# Run complete. Total time: 00:16:24
REMEMBER: The numbers below are just data. To gain reusable insights, you need to follow up on
why the numbers are the way they are. Use profilers (see -prof, -lprof), design factorial
experiments, perform baseline and negative tests that provide experimental control, make sure
the benchmarking environment is safe on JVM/OS/HW level, ask for reviews from the domain experts.
Do not assume the numbers tell you what you want them to tell.
Benchmark Mode Cnt Score Error Units
SpeedTest.bench01_Blackhole thrpt 5 48064,567 ± 55,784 ops/ms
SpeedTest.bench02_Event thrpt 5 655503,761 ± 1342,351 ops/ms
SpeedTest.bench03_Event2 thrpt 5 44431,706 ± 32,547 ops/ms
SpeedTest.bench03a_Event2 thrpt 5 218672,952 ± 205,582 ops/ms
SpeedTest.bench03b_Event2 thrpt 5 258171,070 ± 116,473 ops/ms
SpeedTest.bench04_EventNew thrpt 5 44607,214 ± 256,196 ops/ms
SpeedTest.bench04a_New thrpt 5 392437,699 ± 641,088 ops/ms
SpeedTest.bench05_2Event3 thrpt 5 24723,423 ± 11,480 ops/ms
SpeedTest.bench06_2Event_ thrpt 5 45845,187 ± 42,573 ops/ms
SpeedTest.bench07_2Event2 thrpt 5 45295,446 ± 54,199 ops/ms
SpeedTest.bench08_2Event thrpt 5 45375,708 ± 72,212 ops/ms
SpeedTest.bench09_3 thrpt 5 22739,847 ± 29,426 ops/ms
SpeedTest.bench09a_3_2 thrpt 5 22735,755 ± 18,364 ops/ms
SpeedTest.bench10_3_3 thrpt 5 42791,118 ± 52,932 ops/ms
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench01_Blackhole
# Run progress: 0,00% complete, ETA 00:16:20
# Fork: 1 of 1
# Warmup Iteration 1: 106385,410 ops/ms
# Warmup Iteration 2: 103059,182 ops/ms
# Warmup Iteration 3: 93821,745 ops/ms
# Warmup Iteration 4: 93902,429 ops/ms
Iteration 1: 93810,304 ops/ms
Iteration 2: 93739,384 ops/ms
Iteration 3: 93870,275 ops/ms
Iteration 4: 93827,799 ops/ms
Iteration 5: 93746,802 ops/ms
Result "net.md_5.SpeedTest.bench01_Blackhole":
93798,913 ±(99.9%) 213,667 ops/ms [Average]
(min, avg, max) = (93739,384, 93798,913, 93870,275), stdev = 55,489
CI (99.9%): [93585,245, 94012,580] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench02_Event
# Run progress: 7,14% complete, ETA 00:15:13
# Fork: 1 of 1
# Warmup Iteration 1: 463467,477 ops/ms
# Warmup Iteration 2: 431599,456 ops/ms
# Warmup Iteration 3: 654473,758 ops/ms
# Warmup Iteration 4: 655001,566 ops/ms
Iteration 1: 653932,073 ops/ms
Iteration 2: 654608,603 ops/ms
Iteration 3: 654660,176 ops/ms
Iteration 4: 655483,850 ops/ms
Iteration 5: 655972,579 ops/ms
Result "net.md_5.SpeedTest.bench02_Event":
654931,456 ±(99.9%) 3083,924 ops/ms [Average]
(min, avg, max) = (653932,073, 654931,456, 655972,579), stdev = 800,885
CI (99.9%): [651847,532, 658015,380] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench03_Event2
# Run progress: 14,29% complete, ETA 00:14:03
# Fork: 1 of 1
# Warmup Iteration 1: 83012,615 ops/ms
# Warmup Iteration 2: 84435,269 ops/ms
# Warmup Iteration 3: 85056,525 ops/ms
# Warmup Iteration 4: 84988,266 ops/ms
Iteration 1: 85086,615 ops/ms
Iteration 2: 85037,660 ops/ms
Iteration 3: 85063,384 ops/ms
Iteration 4: 85072,654 ops/ms
Iteration 5: 85078,644 ops/ms
Result "net.md_5.SpeedTest.bench03_Event2":
85067,792 ±(99.9%) 72,630 ops/ms [Average]
(min, avg, max) = (85037,660, 85067,792, 85086,615), stdev = 18,862
CI (99.9%): [84995,162, 85140,422] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench03a_Event2
# Run progress: 21,43% complete, ETA 00:12:53
# Fork: 1 of 1
# Warmup Iteration 1: 215287,901 ops/ms
# Warmup Iteration 2: 217975,110 ops/ms
# Warmup Iteration 3: 218711,767 ops/ms
# Warmup Iteration 4: 218739,439 ops/ms
Iteration 1: 218732,815 ops/ms
Iteration 2: 218716,841 ops/ms
Iteration 3: 218515,241 ops/ms
Iteration 4: 218657,023 ops/ms
Iteration 5: 218699,261 ops/ms
Result "net.md_5.SpeedTest.bench03a_Event2":
218664,236 ±(99.9%) 338,707 ops/ms [Average]
(min, avg, max) = (218515,241, 218664,236, 218732,815), stdev = 87,961
CI (99.9%): [218325,529, 219002,943] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench03b_Event2
# Run progress: 28,57% complete, ETA 00:11:43
# Fork: 1 of 1
# Warmup Iteration 1: 244505,316 ops/ms
# Warmup Iteration 2: 258169,483 ops/ms
# Warmup Iteration 3: 258244,113 ops/ms
# Warmup Iteration 4: 258257,137 ops/ms
Iteration 1: 258256,873 ops/ms
Iteration 2: 258254,677 ops/ms
Iteration 3: 258112,468 ops/ms
Iteration 4: 258221,428 ops/ms
Iteration 5: 258236,659 ops/ms
Result "net.md_5.SpeedTest.bench03b_Event2":
258216,421 ±(99.9%) 230,563 ops/ms [Average]
(min, avg, max) = (258112,468, 258216,421, 258256,873), stdev = 59,877
CI (99.9%): [257985,858, 258446,984] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench04_EventNew
# Run progress: 35,71% complete, ETA 00:10:32
# Fork: 1 of 1
# Warmup Iteration 1: 94920,649 ops/ms
# Warmup Iteration 2: 97131,210 ops/ms
# Warmup Iteration 3: 89673,246 ops/ms
# Warmup Iteration 4: 89693,524 ops/ms
Iteration 1: 89670,986 ops/ms
Iteration 2: 89669,035 ops/ms
Iteration 3: 89685,162 ops/ms
Iteration 4: 89674,699 ops/ms
Iteration 5: 89668,305 ops/ms
Result "net.md_5.SpeedTest.bench04_EventNew":
89673,637 ±(99.9%) 26,580 ops/ms [Average]
(min, avg, max) = (89668,305, 89673,637, 89685,162), stdev = 6,903
CI (99.9%): [89647,057, 89700,218] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench04a_New
# Run progress: 42,86% complete, ETA 00:09:22
# Fork: 1 of 1
# Warmup Iteration 1: 289979,551 ops/ms
# Warmup Iteration 2: 293535,080 ops/ms
# Warmup Iteration 3: 392500,589 ops/ms
# Warmup Iteration 4: 392700,541 ops/ms
Iteration 1: 392634,815 ops/ms
Iteration 2: 392623,044 ops/ms
Iteration 3: 392618,582 ops/ms
Iteration 4: 392693,055 ops/ms
Iteration 5: 392615,571 ops/ms
Result "net.md_5.SpeedTest.bench04a_New":
392637,013 ±(99.9%) 123,884 ops/ms [Average]
(min, avg, max) = (392615,571, 392637,013, 392693,055), stdev = 32,172
CI (99.9%): [392513,130, 392760,897] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench05_2Event3
# Run progress: 50,00% complete, ETA 00:08:12
# Fork: 1 of 1
# Warmup Iteration 1: 33371,911 ops/ms
# Warmup Iteration 2: 33952,217 ops/ms
# Warmup Iteration 3: 33948,482 ops/ms
# Warmup Iteration 4: 33938,753 ops/ms
Iteration 1: 33971,563 ops/ms
Iteration 2: 33860,019 ops/ms
Iteration 3: 33911,900 ops/ms
Iteration 4: 33850,469 ops/ms
Iteration 5: 33960,762 ops/ms
Result "net.md_5.SpeedTest.bench05_2Event3":
33910,943 ±(99.9%) 214,464 ops/ms [Average]
(min, avg, max) = (33850,469, 33910,943, 33971,563), stdev = 55,696
CI (99.9%): [33696,479, 34125,407] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench06_2Event_
# Run progress: 57,14% complete, ETA 00:07:01
# Fork: 1 of 1
# Warmup Iteration 1: 87510,522 ops/ms
# Warmup Iteration 2: 89725,273 ops/ms
# Warmup Iteration 3: 82400,312 ops/ms
# Warmup Iteration 4: 82547,459 ops/ms
Iteration 1: 82855,092 ops/ms
Iteration 2: 82776,280 ops/ms
Iteration 3: 82839,198 ops/ms
Iteration 4: 82537,661 ops/ms
Iteration 5: 82849,483 ops/ms
Result "net.md_5.SpeedTest.bench06_2Event_":
82771,543 ±(99.9%) 517,892 ops/ms [Average]
(min, avg, max) = (82537,661, 82771,543, 82855,092), stdev = 134,495
CI (99.9%): [82253,650, 83289,435] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench07_2Event2
# Run progress: 64,29% complete, ETA 00:05:51
# Fork: 1 of 1
# Warmup Iteration 1: 88830,219 ops/ms
# Warmup Iteration 2: 84889,498 ops/ms
# Warmup Iteration 3: 80536,633 ops/ms
# Warmup Iteration 4: 81160,520 ops/ms
Iteration 1: 81041,679 ops/ms
Iteration 2: 81123,016 ops/ms
Iteration 3: 81226,832 ops/ms
Iteration 4: 81233,540 ops/ms
Iteration 5: 81048,193 ops/ms
Result "net.md_5.SpeedTest.bench07_2Event2":
81134,652 ±(99.9%) 357,770 ops/ms [Average]
(min, avg, max) = (81041,679, 81134,652, 81233,540), stdev = 92,912
CI (99.9%): [80776,882, 81492,423] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench08_2Event
# Run progress: 71,43% complete, ETA 00:04:41
# Fork: 1 of 1
# Warmup Iteration 1: 83550,048 ops/ms
# Warmup Iteration 2: 83832,680 ops/ms
# Warmup Iteration 3: 77482,430 ops/ms
# Warmup Iteration 4: 77477,994 ops/ms
Iteration 1: 77456,445 ops/ms
Iteration 2: 77491,470 ops/ms
Iteration 3: 77464,261 ops/ms
Iteration 4: 77405,801 ops/ms
Iteration 5: 77464,244 ops/ms
Result "net.md_5.SpeedTest.bench08_2Event":
77456,444 ±(99.9%) 120,444 ops/ms [Average]
(min, avg, max) = (77405,801, 77456,444, 77491,470), stdev = 31,279
CI (99.9%): [77336,000, 77576,889] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench09_3
# Run progress: 78,57% complete, ETA 00:03:30
# Fork: 1 of 1
# Warmup Iteration 1: 28964,524 ops/ms
# Warmup Iteration 2: 31114,948 ops/ms
# Warmup Iteration 3: 30918,344 ops/ms
# Warmup Iteration 4: 30952,121 ops/ms
Iteration 1: 30960,131 ops/ms
Iteration 2: 30965,229 ops/ms
Iteration 3: 30934,289 ops/ms
Iteration 4: 30937,186 ops/ms
Iteration 5: 30908,039 ops/ms
Result "net.md_5.SpeedTest.bench09_3":
30940,975 ±(99.9%) 88,210 ops/ms [Average]
(min, avg, max) = (30908,039, 30940,975, 30965,229), stdev = 22,908
CI (99.9%): [30852,765, 31029,185] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench09a_3_2
# Run progress: 85,71% complete, ETA 00:02:20
# Fork: 1 of 1
# Warmup Iteration 1: 29692,246 ops/ms
# Warmup Iteration 2: 30232,213 ops/ms
# Warmup Iteration 3: 29381,811 ops/ms
# Warmup Iteration 4: 29458,416 ops/ms
Iteration 1: 29385,205 ops/ms
Iteration 2: 29390,598 ops/ms
Iteration 3: 29431,007 ops/ms
Iteration 4: 29396,743 ops/ms
Iteration 5: 29415,864 ops/ms
Result "net.md_5.SpeedTest.bench09a_3_2":
29403,884 ±(99.9%) 73,455 ops/ms [Average]
(min, avg, max) = (29385,205, 29403,884, 29431,007), stdev = 19,076
CI (99.9%): [29330,428, 29477,339] (assumes normal distribution)
# JMH version: 1.32
# VM version: JDK 16.0.1, OpenJDK 64-Bit Server VM, 16.0.1+9
# VM invoker: C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\java.exe
# VM options: <none>
# Blackhole mode: full + dont-inline hint
# Warmup: 4 iterations, 5 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: net.md_5.SpeedTest.bench10_3_3
# Run progress: 92,86% complete, ETA 00:01:10
# Fork: 1 of 1
# Warmup Iteration 1: 79175,830 ops/ms
# Warmup Iteration 2: 80934,329 ops/ms
# Warmup Iteration 3: 74444,644 ops/ms
# Warmup Iteration 4: 74514,503 ops/ms
Iteration 1: 74265,474 ops/ms
Iteration 2: 74543,264 ops/ms
Iteration 3: 74473,048 ops/ms
Iteration 4: 74504,009 ops/ms
Iteration 5: 74382,439 ops/ms
Result "net.md_5.SpeedTest.bench10_3_3":
74433,647 ±(99.9%) 428,027 ops/ms [Average]
(min, avg, max) = (74265,474, 74433,647, 74543,264), stdev = 111,157
CI (99.9%): [74005,621, 74861,674] (assumes normal distribution)
# Run complete. Total time: 00:16:23
REMEMBER: The numbers below are just data. To gain reusable insights, you need to follow up on
why the numbers are the way they are. Use profilers (see -prof, -lprof), design factorial
experiments, perform baseline and negative tests that provide experimental control, make sure
the benchmarking environment is safe on JVM/OS/HW level, ask for reviews from the domain experts.
Do not assume the numbers tell you what you want them to tell.
Benchmark Mode Cnt Score Error Units
SpeedTest.bench01_Blackhole thrpt 5 93798,913 ± 213,667 ops/ms
SpeedTest.bench02_Event thrpt 5 654931,456 ± 3083,924 ops/ms
SpeedTest.bench03_Event2 thrpt 5 85067,792 ± 72,630 ops/ms
SpeedTest.bench03a_Event2 thrpt 5 218664,236 ± 338,707 ops/ms
SpeedTest.bench03b_Event2 thrpt 5 258216,421 ± 230,563 ops/ms
SpeedTest.bench04_EventNew thrpt 5 89673,637 ± 26,580 ops/ms
SpeedTest.bench04a_New thrpt 5 392637,013 ± 123,884 ops/ms
SpeedTest.bench05_2Event3 thrpt 5 33910,943 ± 214,464 ops/ms
SpeedTest.bench06_2Event_ thrpt 5 82771,543 ± 517,892 ops/ms
SpeedTest.bench07_2Event2 thrpt 5 81134,652 ± 357,770 ops/ms
SpeedTest.bench08_2Event thrpt 5 77456,444 ± 120,444 ops/ms
SpeedTest.bench09_3 thrpt 5 30940,975 ± 88,210 ops/ms
SpeedTest.bench09a_3_2 thrpt 5 29403,884 ± 73,455 ops/ms
SpeedTest.bench10_3_3 thrpt 5 74433,647 ± 428,027 ops/ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment