Skip to content

Commit

Permalink
Write benchmark results to file (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
pivovarit authored Oct 15, 2024
1 parent f1df24c commit 2f900b5
Show file tree
Hide file tree
Showing 2 changed files with 935 additions and 60 deletions.
63 changes: 3 additions & 60 deletions src/test/java/com/pivovarit/collectors/benchmark/Bench.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.annotations.TearDown;
import org.openjdk.jmh.results.format.ResultFormatType;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.OptionsBuilder;
Expand Down Expand Up @@ -78,67 +79,9 @@ public static void main(String[] args) throws RunnerException {
.include(Bench.class.getSimpleName())
.warmupIterations(5)
.measurementIterations(5)
.resultFormat(ResultFormatType.JSON)
.result("result.json")
.forks(1)
.build()).run();
}
}

/* 972ffbb @ Intel i7-4980HQ (8) @ 2.80GHz, 8u222
Benchmark (parallelism) Mode Cnt Score Error Units
Bench.parallel_batch_collect 1 thrpt 5 10218.766 ± 131.633 ops/s
Bench.parallel_batch_collect 10 thrpt 5 8096.380 ± 197.893 ops/s
Bench.parallel_batch_collect 100 thrpt 5 2441.829 ± 207.863 ops/s
Bench.parallel_batch_collect 1000 thrpt 5 1092.730 ± 54.745 ops/s
Bench.parallel_batch_streaming_collect 1 thrpt 5 10715.432 ± 78.383 ops/s
Bench.parallel_batch_streaming_collect 10 thrpt 5 7894.899 ± 229.013 ops/s
Bench.parallel_batch_streaming_collect 100 thrpt 5 3089.166 ± 181.723 ops/s
Bench.parallel_batch_streaming_collect 1000 thrpt 5 1001.557 ± 68.654 ops/s
Bench.parallel_collect 1 thrpt 5 67.891 ± 1.357 ops/s
Bench.parallel_collect 10 thrpt 5 105.943 ± 7.940 ops/s
Bench.parallel_collect 100 thrpt 5 597.102 ± 78.423 ops/s
Bench.parallel_collect 1000 thrpt 5 948.764 ± 84.439 ops/s
Bench.parallel_streaming 1 thrpt 5 50.920 ± 1.569 ops/s
Bench.parallel_streaming 10 thrpt 5 94.064 ± 4.054 ops/s
Bench.parallel_streaming 100 thrpt 5 619.749 ± 52.431 ops/s
Bench.parallel_streaming 1000 thrpt 5 998.359 ± 116.077 ops/s
677be167 @ Intel i7-4980HQ (8) @ 2.80GHz, 8u222
Benchmark (parallelism) Mode Cnt Score Error Units
Bench.parallel_batch_collect 1 thrpt 5 32233.522 ± 235.439 ops/s
Bench.parallel_batch_collect 10 thrpt 5 8060.083 ± 94.752 ops/s
Bench.parallel_batch_collect 100 thrpt 5 2426.542 ± 193.879 ops/s
Bench.parallel_batch_collect 1000 thrpt 5 934.644 ± 55.999 ops/s
Bench.parallel_batch_streaming_collect 1 thrpt 5 77694.159 ± 2116.185 ops/s
Bench.parallel_batch_streaming_collect 10 thrpt 5 7870.352 ± 348.309 ops/s
Bench.parallel_batch_streaming_collect 100 thrpt 5 2879.023 ± 201.298 ops/s
Bench.parallel_batch_streaming_collect 1000 thrpt 5 967.816 ± 38.293 ops/s
Bench.parallel_collect 1 thrpt 5 32098.014 ± 172.707 ops/s
Bench.parallel_collect 10 thrpt 5 100.167 ± 1.716 ops/s
Bench.parallel_collect 100 thrpt 5 575.142 ± 38.363 ops/s
Bench.parallel_collect 1000 thrpt 5 838.213 ± 104.457 ops/s
Bench.parallel_streaming 1 thrpt 5 76688.156 ± 345.348 ops/s
Bench.parallel_streaming 10 thrpt 5 94.536 ± 3.537 ops/s
Bench.parallel_streaming 100 thrpt 5 568.705 ± 43.813 ops/s
Bench.parallel_streaming 1000 thrpt 5 661.632 ± 125.598 ops/s
*/


/*
Benchmark (parallelism) Mode Cnt Score Error Units
Bench.parallel_batch_collect 1 thrpt 5 10322.716 ± 205.674 ops/s
Bench.parallel_batch_collect 10 thrpt 5 8069.709 ± 565.910 ops/s
Bench.parallel_batch_collect 100 thrpt 5 2464.723 ± 211.265 ops/s
Bench.parallel_batch_collect 1000 thrpt 5 1098.746 ± 62.746 ops/s
Bench.parallel_batch_streaming_collect 1 thrpt 5 10558.572 ± 149.537 ops/s
Bench.parallel_batch_streaming_collect 10 thrpt 5 7962.604 ± 193.840 ops/s
Bench.parallel_batch_streaming_collect 100 thrpt 5 2920.520 ± 250.607 ops/s
Bench.parallel_batch_streaming_collect 1000 thrpt 5 990.883 ± 85.655 ops/s
Bench.parallel_collect 1 thrpt 5 10246.722 ± 233.566 ops/s
Bench.parallel_collect 10 thrpt 5 103.467 ± 4.369 ops/s
Bench.parallel_collect 100 thrpt 5 738.842 ± 42.034 ops/s
Bench.parallel_collect 1000 thrpt 5 1003.320 ± 106.542 ops/s
Bench.parallel_streaming 1 thrpt 5 10810.950 ± 79.055 ops/s
Bench.parallel_streaming 10 thrpt 5 96.465 ± 4.228 ops/s
Bench.parallel_streaming 100 thrpt 5 634.921 ± 39.763 ops/s
Bench.parallel_streaming 1000 thrpt 5 1016.447 ± 119.117 ops/s
*/
Loading

0 comments on commit 2f900b5

Please sign in to comment.