Skip to content

xsleonard/select-vs-mutex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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