https://github.com/danil/go_mutex_vs_channels_benchmark
Go mutex vs channels benchmark
https://github.com/danil/go_mutex_vs_channels_benchmark
Last synced: 12 months ago
JSON representation
Go mutex vs channels benchmark
- Host: GitHub
- URL: https://github.com/danil/go_mutex_vs_channels_benchmark
- Owner: danil
- License: mit
- Created: 2018-06-07T10:56:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-17T10:00:35.000Z (about 8 years ago)
- Last Synced: 2025-02-13T22:37:11.987Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go mutex vs channels benchmark
[](https://travis-ci.org/danil/go_mutex_vs_channels_benchmark)
## Benchmark
go test -bench=. github.com/danil/go_mutex_vs_channels_benchmark/...
Benchmark_seriesSumWithMutex-4 1000000 1369 ns/op
Benchmark_seriesSumWithChan-4 1000000 1609 ns/op
## License
Licensed under [MIT License](./LICENSE)