Skip to content
Golang comparison of a lock-free select to a mutex
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
svm.go
svm_test.go

README.md

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.

You can’t perform that action at this time.