After fixing the bugs pointed out by Michael (I'm incompetent), here are
the new results:
Uninterned-8 120ms ą18%
Map-8 140ms ą 2%
LockedMap-8 139ms ą 2%
LockedParellel-8 146ms ą 2%
SyncMap-8 253ms ą 4%
SyncMapParallel-8 109ms ą 9%
Unique-8 169ms ą 2%
UniqueParallel-8 97.6ms ą 5%
SyncMap has pretty horrible memory behaviour, probably doe to all the
coercions between string and any:
Uninterned-8 41.9MB ą 0%
Map-8 41.9MB ą 0%
LockedMap-8 41.9MB ą 0%
LockedParellel-8 41.9MB ą 0%
SyncMap-8 75.5MB ą 0%
SyncMapParallel-8 75.5MB ą 0%
Unique-8 33.6MB ą 0%
UniqueParallel-8 33.6MB ą 0%
https://play.golang.com/p/Pv5S3SITuVz
-- Juliusz
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/874j9fu1lp.fsf%40pirx.irif.fr.