-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bench] separate comparative benchmarks (#1060)
<!-- PRs require an approval from any of the core contributors, other than the PR author. Include this header if applicable: Fixes #issue1, #issue2, ... --> ### Problem <!-- Explain here the context, and why you're making this change. What is the problem you're trying to solve? --> Kyo's benchmarks are currently all in the same module and package. As we evolve the library, we'll likely need to introduce benchmarks that aren't meant for comparing different effect systems. Having all benchmarks in the same package is also inconvenient when you want to execute only the comparative ones for example. ### Solution <!-- Describe your solution. Focus on helping reviewers understand your technical approach and implementation decisions. --> Move comparative benchmarks to a separate `kyo.bench.arena` package. Benchmarks that don't follow the comparative pattern with sync/fork benchmarks were kept in the `kyo.bench` package.
- Loading branch information
Showing
53 changed files
with
153 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package kyo.bench | ||
|
||
import org.openjdk.jmh.annotations.* | ||
|
||
@State(Scope.Benchmark) | ||
@Fork( | ||
value = 1, | ||
jvmArgs = Array( | ||
"-XX:+UnlockExperimentalVMOptions", | ||
"-XX:-DoJVMTIVirtualThreadTransitions", | ||
"-Dcom.sun.management.jmxremote", | ||
"-Dcom.sun.management.jmxremote.port=1099", | ||
"-Dcom.sun.management.jmxremote.authenticate=false", | ||
"-Dcom.sun.management.jmxremote.ssl=false" | ||
), | ||
jvmArgsPrepend = Array( | ||
"--add-opens=java.base/java.lang=ALL-UNNAMED" | ||
) | ||
) | ||
@BenchmarkMode(Array(Mode.Throughput)) | ||
class BaseBench |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...src/main/scala/kyo/bench/BatchBench.scala → ...in/scala/kyo/bench/arena/BatchBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../main/scala/kyo/bench/BlockingBench.scala → ...scala/kyo/bench/arena/BlockingBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...a/kyo/bench/BlockingContentionBench.scala → ...bench/arena/BlockingContentionBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...n/scala/kyo/bench/BroadFlatMapBench.scala → ...a/kyo/bench/arena/BroadFlatMapBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...c/main/scala/kyo/bench/CollectBench.scala → .../scala/kyo/bench/arena/CollectBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ain/scala/kyo/bench/CollectParBench.scala → ...ala/kyo/bench/arena/CollectParBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...scala/kyo/bench/CountdownLatchBench.scala → ...kyo/bench/arena/CountdownLatchBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../main/scala/kyo/bench/DeepBindBench.scala → ...scala/kyo/bench/arena/DeepBindBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...in/scala/kyo/bench/DeepBindMapBench.scala → ...la/kyo/bench/arena/DeepBindMapBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...scala/kyo/bench/EnqueueDequeueBench.scala → ...kyo/bench/arena/EnqueueDequeueBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...in/scala/kyo/bench/ForkChainedBench.scala → ...la/kyo/bench/arena/ForkChainedBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../main/scala/kyo/bench/ForkJoinBench.scala → ...scala/kyo/bench/arena/ForkJoinBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...a/kyo/bench/ForkJoinContentionBench.scala → ...bench/arena/ForkJoinContentionBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../main/scala/kyo/bench/ForkManyBench.scala → ...scala/kyo/bench/arena/ForkManyBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...main/scala/kyo/bench/ForkSpawnBench.scala → ...cala/kyo/bench/arena/ForkSpawnBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ain/scala/kyo/bench/HttpClientBench.scala → ...ala/kyo/bench/arena/HttpClientBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...kyo/bench/HttpClientContentionBench.scala → ...nch/arena/HttpClientContentionBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...c/main/scala/kyo/bench/LoggingBench.scala → .../scala/kyo/bench/arena/LoggingBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ain/scala/kyo/bench/NarrowBindBench.scala → ...ala/kyo/bench/arena/NarrowBindBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../scala/kyo/bench/NarrowBindMapBench.scala → .../kyo/bench/arena/NarrowBindMapBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../main/scala/kyo/bench/PingPongBench.scala → ...scala/kyo/bench/arena/PingPongBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ala/kyo/bench/ProducerConsumerBench.scala → ...o/bench/arena/ProducerConsumerBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...rc/main/scala/kyo/bench/RandomBench.scala → ...n/scala/kyo/bench/arena/RandomBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ain/scala/kyo/bench/RendezvousBench.scala → ...ala/kyo/bench/arena/RendezvousBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ain/scala/kyo/bench/SchedulingBench.scala → ...ala/kyo/bench/arena/SchedulingBench.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.