3 points · by tomaszsobota · 4y ago · 4 comments
This is one of my first OSS contributions so I'd love some feedback :)
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.
Maybe it would be good to be able to pass a context for the store, so the loop stops when the context cancelled.