Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lnquy/go19-map-bench
Benchmark result for Go 1.9 concurrency map (sync.Map) - 1.9.beta2
https://github.com/lnquy/go19-map-bench
concurrency go golang map sync
Last synced: about 2 months ago
JSON representation
Benchmark result for Go 1.9 concurrency map (sync.Map) - 1.9.beta2
- Host: GitHub
- URL: https://github.com/lnquy/go19-map-bench
- Owner: lnquy
- License: mit
- Created: 2017-07-14T10:46:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-16T12:46:49.000Z (over 7 years ago)
- Last Synced: 2024-08-03T23:24:15.177Z (5 months ago)
- Topics: concurrency, go, golang, map, sync
- Language: Go
- Homepage: https://lnquy.com
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - go19-map-bench - 1.9.beta2 (Repositories)
README
# go19-map-bench
Benchmark result for Go 1.9 concurrency map (sync.Map).```
lnquy@rain:~/workspace/projects/go/src/github.com/lnquy/go19-map-bench$ go test -bench=. -cpu=1
goos: linux
goarch: amd64
pkg: github.com/lnquy/go19-map-bench
BenchmarkNMapIntInt_Write 100000000 16.2 ns/op
BenchmarkNMapIntInt_Read 100000000 15.9 ns/op
BenchmarkNMapStrInt_Write 10000000 242 ns/op
BenchmarkNMapStrInt_Read 10000000 242 ns/op
BenchmarkNMapIntStr_Write 10000000 206 ns/op
BenchmarkNMapIntStr_Read 100000000 17.7 ns/op
BenchmarkNMapStrStr_Write 5000000 251 ns/op
BenchmarkNMapStrStr_Read 10000000 250 ns/op
BenchmarkCMap_Write 10000000 120 ns/op
BenchmarkCMap_Read 30000000 41.3 ns/op
PASS
ok github.com/lnquy/go19-map-bench 19.477s
lnquy@rain:~/workspace/projects/go/src/github.com/lnquy/go19-map-bench$ go run main.go
Normal map executed in 323.796539ms
Normal map size: 1000000
Sync map 1.9 executed in 726.494685ms
Sync map size: 1000000
```