Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mijicd
Copy link
Member

@mijicd mijicd commented Nov 22, 2020

Before

SemaphoreBenchmark.semaphoreCatsContention        10   1000  thrpt   15  81.221 ± 0.813  ops/s
SemaphoreBenchmark.semaphoreContention            10   1000  thrpt   15  90.358 ± 3.090  ops/s
SemaphoreBenchmark.tsemaphoreContention           10   1000  thrpt   15  71.509 ± 1.580  ops/s

After

Benchmark                                   (fibers)  (ops)   Mode  Cnt    Score   Error  Units
SemaphoreBenchmark.semaphoreCatsContention        10   1000  thrpt   15   87.725 ± 1.801  ops/s
SemaphoreBenchmark.semaphoreContention            10   1000  thrpt   15   93.385 ± 4.835  ops/s
SemaphoreBenchmark.tsemaphoreContention           10   1000  thrpt   15  130.562 ± 0.780  ops/s

@mijicd mijicd added stm ZIO STM performance Performance and optimization labels Nov 22, 2020
@jdegoes
Copy link
Member

jdegoes commented Nov 23, 2020

Amazing. 😍

@jdegoes jdegoes merged commit dfa8fcc into zio:master Nov 23, 2020
@mijicd mijicd deleted the feature/better-semaphore branch November 23, 2020 17:01
atooni pushed a commit to blended-zio/zio that referenced this pull request Dec 1, 2020
* Improve TSemaphore

* Ignore mima for private method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance and optimization stm ZIO STM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants