github.com/daskol/spinlock
Package spinlock provides a low level implementation of spinlock in assembly. Also, it provides fallback to implementation based on built-in atomics. On my private laptop benchmark results are the following. Measured time is wall time. The fastest implementation based on free function Lock()/Unlock(). However it is two times slower than spinlock implemented in modern C++.
Ecosystem
proxy.golang.org
proxy.golang.org
Latest Release
over 7 years ago
v0.0.0-20180726163809-0107801d875f
over 7 years ago
Versions
1
1
Loading...
Readme
Loading...
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
Repository
| Stars | 5 on GitHub |
| Forks | 0 on GitHub |
Rankings on proxy.golang.org
Overall
Top 8.2%