import (
...
conmap "github.com/amazingchow/photon-dance-concurrent-hashmap"
...
)
...
cm := conmap.NewConMap()
cm.Store("Bob", 15)
...
---------------------------------------------------------------------------------
Item Iter TPS
---------------------------------------------------------------------------------
BenchmarkConMapThroughputBatch_1-12 100000 695 ns/op
BenchmarkGolangMapThroughputBatch_1-12 100000 610 ns/op
BenchmarkConMapThroughputBatch_16-12 100000 7865 ns/op
BenchmarkGolangMapThroughputBatch_16-12 100000 9418 ns/op
BenchmarkConMapThroughputBatch_32-12 100000 14318 ns/op
BenchmarkGolangMapThroughputBatch_32-12 100000 19169 ns/op
BenchmarkConMapThroughputBatch_64-12 100000 24099 ns/op
BenchmarkGolangMapThroughputBatch_64-12 100000 40984 ns/op
BenchmarkConMapThroughputBatch_128-12 100000 40638 ns/op
BenchmarkGolangMapThroughputBatch_128-12 100000 92595 ns/op
---------------------------------------------------------------------------------
- 🍴 Fork this repo!
- 🔨 HACK AWAY!
- 🔃 Create a new PR using https://github.com/amazingchow/photon-dance-concurrent-hashmap/compare!
- Reach out to me at jianzhou42@163.com.
- This project is licensed under the MIT License - see the MIT license for details.