Skip to content

amazingchow/photon-dance-concurrent-hashmap

Repository files navigation

photon-dance-concurrent-hashmap

Usage

import (
    ...
    conmap "github.com/amazingchow/photon-dance-concurrent-hashmap"
    ...
)

...

cm := conmap.NewConMap()
cm.Store("Bob", 15)
...

Benchmark

---------------------------------------------------------------------------------
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
---------------------------------------------------------------------------------

Documentation

Reference

Contributing

Step 1

  • 🍴 Fork this repo!

Step 2

  • 🔨 HACK AWAY!

Step 3

Support

License

  • This project is licensed under the MIT License - see the MIT license for details.