Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: A simple zero-dependency in-memory key-value store for Golang. Parent comment
On my hardware, a simple Set->Get scenario takes TBKV 1500 ns/op where sync.Map takes only ~80 ns/op to perform the same task.
That's a 20x difference in duration :(
The benchmark code is already in master.
There are no comments on this comment yet.
On my hardware, a simple Set->Get scenario takes TBKV 1500 ns/op where sync.Map takes only ~80 ns/op to perform the same task.
That's a 20x difference in duration :(
The benchmark code is already in master.