diff --git a/bench/src/main/java/org/sample/RendezvousBenchmark.java b/bench/src/main/java/org/sample/RendezvousBenchmark.java index 6b9e2ec..2d8c0a6 100644 --- a/bench/src/main/java/org/sample/RendezvousBenchmark.java +++ b/bench/src/main/java/org/sample/RendezvousBenchmark.java @@ -47,8 +47,7 @@ // this needs to be slightly larger than the test time to avoid warnings @Timeout(time = 5100, timeUnit = TimeUnit.MILLISECONDS) @Fork(value = 3) -@BenchmarkMode(Mode.Throughput) -@OutputTimeUnit(TimeUnit.MILLISECONDS) +@BenchmarkMode(Mode.AverageTime) @State(Scope.Group) public class RendezvousBenchmark { private SynchronousQueue queue = new SynchronousQueue<>(); @@ -96,7 +95,6 @@ public void sendToChannel() throws InterruptedException { channel.send(63); } - @Benchmark @Group("channel") @GroupThreads(1) diff --git a/docs/bench/data.js b/docs/bench/data.js deleted file mode 100644 index 4950fa1..0000000 --- a/docs/bench/data.js +++ /dev/null @@ -1,92 +0,0 @@ -window.BENCHMARK_DATA = { - "lastUpdate": 1701790688304, - "repoUrl": "https://github.com/softwaremill/jox", - "entries": { - "Benchmark": [ - { - "commit": { - "author": { - "email": "adam@warski.org", - "name": "adamw", - "username": "adamw" - }, - "committer": { - "email": "adam@warski.org", - "name": "adamw", - "username": "adamw" - }, - "distinct": true, - "id": "da42f1b17842981340ae7eb89d44135ffa9bf560", - "message": "WIP", - "timestamp": "2023-12-05T16:35:21+01:00", - "tree_id": "2a2b6f97acce66206190a0be40a3be295a0e27e3", - "url": "https://github.com/softwaremill/jox/commit/da42f1b17842981340ae7eb89d44135ffa9bf560" - }, - "date": 1701790570784, - "tool": "jmh", - "benches": [ - { - "name": "org.sample.RendezvousBenchmark.channel", - "value": 9809.983433455393, - "unit": "ops/ms", - "extra": "iterations: 1\nforks: 1\nthreads: 2" - }, - { - "name": "org.sample.RendezvousBenchmark.exchanger", - "value": 20198.751029825304, - "unit": "ops/ms", - "extra": "iterations: 1\nforks: 1\nthreads: 2" - }, - { - "name": "org.sample.RendezvousBenchmark.synchronous_queue", - "value": 8347.924224677055, - "unit": "ops/ms", - "extra": "iterations: 1\nforks: 1\nthreads: 2" - } - ] - }, - { - "commit": { - "author": { - "email": "adam@warski.org", - "name": "adamw", - "username": "adamw" - }, - "committer": { - "email": "adam@warski.org", - "name": "adamw", - "username": "adamw" - }, - "distinct": true, - "id": "1ad566f4e13b527d765b30c775dab22c6fb363a7", - "message": "WIP", - "timestamp": "2023-12-05T16:37:16+01:00", - "tree_id": "02420af60a4fddc72cfa11f50b94291545e30ed0", - "url": "https://github.com/softwaremill/jox/commit/1ad566f4e13b527d765b30c775dab22c6fb363a7" - }, - "date": 1701790688290, - "tool": "jmh", - "benches": [ - { - "name": "org.sample.RendezvousBenchmark.channel", - "value": 9869.604671146584, - "unit": "ops/ms", - "extra": "iterations: 1\nforks: 1\nthreads: 2" - }, - { - "name": "org.sample.RendezvousBenchmark.exchanger", - "value": 25286.433330787426, - "unit": "ops/ms", - "extra": "iterations: 1\nforks: 1\nthreads: 2" - }, - { - "name": "org.sample.RendezvousBenchmark.synchronous_queue", - "value": 8570.444042044957, - "unit": "ops/ms", - "extra": "iterations: 1\nforks: 1\nthreads: 2" - } - ] - } - ] - } -} \ No newline at end of file