Skip to content

Commit fdc3868

Browse files
author
Bytekeeper
committed
Added reference benchmark to "compare" different runs
1 parent 9104aae commit fdc3868

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/java/bwapi/ClientDataBenchmark.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ private static String[] buildStrings() {
5555
return strings;
5656
}
5757

58+
@Benchmark
59+
@Measurement(iterations = 2, time = 2)
60+
@Warmup(time = 2)
61+
@Fork(2)
62+
public void reference(Blackhole blackhole) {
63+
blackhole.consume(0);
64+
}
65+
5866
@Benchmark
5967
@OperationsPerInvocation(Client.MAX_COUNT)
6068
public int addUnitCommand(EmptyState s) {

0 commit comments

Comments
 (0)