Skip to content

xsleonard/select-vs-mutex

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

select-vs-mutex

Golang comparison of a lock-free select to a mutex

This is a companion repo to Avoiding Locks in 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.

About

Golang comparison of a lock-free select to a mutex

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages