https://github.com/gramework/sync
[WIP] Drop-in replacement for `sync`'s RWLock
https://github.com/gramework/sync
golang rwmutex sync thread-safety threadsafe
Last synced: 2 months ago
JSON representation
[WIP] Drop-in replacement for `sync`'s RWLock
- Host: GitHub
- URL: https://github.com/gramework/sync
- Owner: gramework
- License: apache-2.0
- Created: 2017-02-05T01:22:32.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-05T01:48:38.000Z (about 9 years ago)
- Last Synced: 2024-12-10T05:55:05.278Z (over 1 year ago)
- Topics: golang, rwmutex, sync, thread-safety, threadsafe
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sync
Drop-in replacement for `sync`'s RWLock
# Benchmarks
```
~/gopath/src/github.com/gramework/sync % go test -bench . -benchmem
testing: warning: no tests to run
BenchmarkGrameworkRWMutex/1-4 100000000 22.3 ns/op 0 B/op 0 allocs/op
BenchmarkGrameworkRWMutex/4-4 20000000 64.8 ns/op 0 B/op 0 allocs/op
BenchmarkGrameworkRWMutex/16-4 20000000 64.7 ns/op 0 B/op 0 allocs/op
BenchmarkGrameworkRWMutex/64-4 20000000 64.4 ns/op 0 B/op 0 allocs/op
BenchmarkGrameworkRWMutex/256-4 20000000 65.1 ns/op 0 B/op 0 allocs/op
BenchmarkOrigRWMutex/1-4 100000000 23.3 ns/op 0 B/op 0 allocs/op
BenchmarkOrigRWMutex/4-4 20000000 70.5 ns/op 0 B/op 0 allocs/op
BenchmarkOrigRWMutex/16-4 20000000 71.4 ns/op 0 B/op 0 allocs/op
BenchmarkOrigRWMutex/64-4 20000000 73.6 ns/op 0 B/op 0 allocs/op
BenchmarkOrigRWMutex/256-4 20000000 73.4 ns/op 0 B/op 0 allocs/op
PASS
ok github.com/gramework/sync 16.126s
```
(note: first two lines was modified: I've put two tabs after the test name.)