Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xsleonard/select-vs-mutex
Golang comparison of a lock-free select to a mutex
https://github.com/xsleonard/select-vs-mutex
Last synced: 1 day ago
JSON representation
Golang comparison of a lock-free select to a mutex
- Host: GitHub
- URL: https://github.com/xsleonard/select-vs-mutex
- Owner: xsleonard
- License: mit
- Created: 2014-01-15T22:08:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-01-15T22:21:09.000Z (over 10 years ago)
- Last Synced: 2024-04-16T00:05:43.956Z (6 months ago)
- Language: Go
- Size: 133 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
select-vs-mutex
===============Golang comparison of a lock-free select to a mutex
This is a companion repo to [Avoiding Locks in Golang](https://xsleonard.github.io/2014/01/15/avoiding-locks-golang/)
Benchmarks
----------```
go test -bench=With
```will run the benchmarks comparing mutex (WithLock) and select (WithoutLock).
```
go test -bench="(Read)|(Write)"
```will run the benchmarks for the lock-free read and write methods.