You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12
Original file line number
Diff line number
Diff line change
@@ -68,28 +68,28 @@ All results were computed from [benchstat](https://pkg.go.dev/golang.org/x/perf/
68
68
1. Concurrent Reads Only
69
69
```
70
70
name time/op
71
-
HaxMapReadsOnly-8 8.75µs ± 9%
72
-
GoSyncMapReadsOnly-8 22.0µs ±11%
73
-
CornelkMapReadsOnly-8 9.20µs ±10%
71
+
HaxMapReadsOnly-8 7.13µs ± 5%
72
+
GoSyncMapReadsOnly-8 22.4µs ± 2%
73
+
CornelkMapReadsOnly-8 8.28µs ± 1%
74
74
```
75
75
76
76
77
77
2. Concurrent Reads with Writes
78
78
```
79
79
name time/op
80
-
HaxMapReadsWithWrites-8 10.0µs ± 9%
81
-
GoSyncMapReadsWithWrites-8 24.8µs ±11%
82
-
CornelkMapReadsWithWrites-8 10.5µs ± 9%
80
+
HaxMapReadsWithWrites-8 8.44µs ± 5%
81
+
GoSyncMapReadsWithWrites-8 26.1µs ± 2%
82
+
CornelkMapReadsWithWrites-8 9.55µs ± 2%
83
83
84
84
name alloc/op
85
-
HaxMapReadsWithWrites-8 1.29kB ± 6%
86
-
GoSyncMapReadsWithWrites-8 6.20kB ± 5%
87
-
CornelkMapReadsWithWrites-8 1.59kB ±10%
85
+
HaxMapReadsWithWrites-8 1.22kB ± 6%
86
+
GoSyncMapReadsWithWrites-8 6.06kB ± 6%
87
+
CornelkMapReadsWithWrites-8 1.56kB ± 5%
88
88
89
89
name allocs/op
90
-
HaxMapReadsWithWrites-8 161 ± 4%
91
-
GoSyncMapReadsWithWrites-8 574 ± 5%
92
-
CornelkMapReadsWithWrites-8 198 ±10%
90
+
HaxMapReadsWithWrites-8 152 ± 6%
91
+
GoSyncMapReadsWithWrites-8 562 ± 6%
92
+
CornelkMapReadsWithWrites-8 195 ± 5%
93
93
```
94
94
95
95
From the above results it is evident that `haxmap` takes the least time, memory and allocations in all cases making it the best golang concurrent hashmap in this period of time
0 commit comments