> In terms of lookup/insertion/etc., I would expect unique.Make to perform
> much better than a locked map when doing operations in parallel, but
> perform slightly worse when everything is done on a single core.
It looks like your intuition was correct. Sync.Map still performs
better, though.
Uninterned-8 113ms ą 2%
Map-8 117ms ą 3%
LockedMap-8 124ms ą 2%
LockedParellel-8 118ms ą 7%
SyncMap-8 133ms ą 1%
SyncMapParallel-8 51.3ms ą 9%
Unique-8 170ms ą 3%
UniqueParallel-8 94.3ms ą 6%
https://play.golang.com/p/6F2jQH5uQYt
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/ttzc8QHgdbA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/878qyrucpg.fsf%40pirx.irif.fr.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/7f5510e4-439a-4b9b-afb2-93231a9838e9n%40googlegroups.com.