Golang comparison of a lock-free select to a mutex
This is a companion repo to Avoiding Locks in Golang
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.