An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Go mutex vs channels benchmark

[![build status](https://travis-ci.org/danil/go_mutex_vs_channels_benchmark.svg?branch=master)](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)