Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ndkoval committed Dec 22, 2020
1 parent 7293edb commit 509b651
Show file tree
Hide file tree
Showing 3 changed files with 379 additions and 223 deletions.
74 changes: 0 additions & 74 deletions benchmarks/scripts/generate_plots_semaphore_jvm.py

This file was deleted.

4 changes: 2 additions & 2 deletions benchmarks/src/jmh/kotlin/benchmarks/SemaphoreBenchmark.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ open class SemaphoreBenchmark {
val semaphore = Semaphore(_3_maxPermits)
val jobs = ArrayList<Job>(coroutines)
repeat(coroutines) {
jobs += GlobalScope.launch {
jobs += GlobalScope.launch(dispatcher) {
repeat(n) {
semaphore.withPermit {
doGeomDistrWork(WORK_INSIDE)
Expand All @@ -69,7 +69,7 @@ open class SemaphoreBenchmark {
val semaphore = Channel<Unit>(_3_maxPermits)
val jobs = ArrayList<Job>(coroutines)
repeat(coroutines) {
jobs += GlobalScope.launch {
jobs += GlobalScope.launch(dispatcher) {
repeat(n) {
semaphore.send(Unit) // acquire
doGeomDistrWork(WORK_INSIDE)
Expand Down
Loading

0 comments on commit 509b651

Please sign in to comment.