Skip to content

Instantly share code, notes, and snippets.

@taotetek
Created June 6, 2015 14:02
Show Gist options
  • Save taotetek/d5fc621dce8b71f5c5b1 to your computer and use it in GitHub Desktop.
Save taotetek/d5fc621dce8b71f5c5b1 to your computer and use it in GitHub Desktop.
results of mutex on laptop
go test -bench=.
testing: warning: no tests to run
PASS
BenchmarkSetGet 2000000000 0.61 ns/op
BenchmarkSetGetMutex 10000000 119 ns/op
ok github.com/taotetek/mutextest 2.622s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment