-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run the benchmarks of awaiting dummy
async
s on both a Mac with M1 a…
…nd an Ubuntu PC with AMD Ryzen™ 3900X, add more warmup and measurement iterations because the results are unstable, and rerun The benchmark results of both show that with `runBlocking`: no dispatcher argument > `Dispatchers.Default` > `newSingleThreadContext` > `Dispatchers.IO`. The Mac with a lower Geekbench multi-core score generally outperforms the Ubuntu PC, except for the one with `Dispatchers.IO`, which is interesting.
- Loading branch information
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...d/src/benchmarks/kotlin/com/huanshankeji/exposed/benchmark/coroutine/AbstractBenchmark.kt
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,11 @@ | ||
package com.huanshankeji.exposed.benchmark.coroutine | ||
|
||
import kotlinx.benchmark.Measurement | ||
import kotlinx.benchmark.Scope | ||
import kotlinx.benchmark.State | ||
import kotlinx.benchmark.Warmup | ||
|
||
@State(Scope.Benchmark) | ||
@Warmup(time = 1, iterations = 8) | ||
@Measurement(time = 1, iterations = 8) | ||
abstract class AbstractBenchmark |
1 change: 0 additions & 1 deletion
1
.../huanshankeji/exposed/benchmark/coroutine/ParameterizedRunBlockingAwaitAsyncsBenchmark.kt
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
1 change: 0 additions & 1 deletion
1
...ks/kotlin/com/huanshankeji/exposed/benchmark/coroutine/RunBlockingAwaitAsyncsBenchmark.kt
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