The new kid in town — Go’s sync.Map

RegularIntMap wraps the built-in map which is protected by a RWMutex and has a similar API to the sync.Map.

So how does the sync.Map perform?

Well, my performance analysis is on-going currently. I’ve only begun to start analyzing this thing and I’m trying my best to write correct benchmarks that mimic different scenarios. Furthermore, I’m trying to find the target scenario that this container was designed for so the best performance case can be demonstrated for the ideal scenarios.

This graph illustrates the performance of the BenchmarkXXXStableKeysFoundX noted above.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ralph Caraveo III

Ralph Caraveo III

Ralph Caraveo was inspired so much by the Go language that he packed up his C#/.Net skills and never looked back.