logoalt Hacker News

Benchmarks for concurrent hash map implementations in Go

67 pointsby platzhirschyesterday at 6:28 PM4 commentsview on HN

Comments

withinboredomtoday at 9:29 PM

Looks good! There's an important thing missing from the benchmarks though:

- cpu usage under concurrency: many of these spin-lock or use atomics, which can use up to 100% cpu time just spinning.

- latency under concurrency: atomics cause cache-line bouncing which kills latency, especially p99 latency

vanderZwantoday at 8:50 PM

I don't write Go but respect to the author for trying to list trade-off considerations for each of the implementations tested, and not just proclaim their library the overal winner.

eatonphiltoday at 8:56 PM

Will we also eventually get a generic sync.Map?

show 1 reply