This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add benchmark to internal stats worker record command. (#545)
The current stats benchmarks don't examine the recording work that happens in the worker goroutine directly. Added this benchmark to attempt to capture that. goos: darwin goarch: amd64 pkg: go.opencensus.io/stats BenchmarkRecord0-8 5000000 226 ns/op 32 B/op 1 allocs/op BenchmarkRecord1-8 5000000 304 ns/op 96 B/op 3 allocs/op BenchmarkRecord8-8 5000000 382 ns/op 256 B/op 3 allocs/op BenchmarkRecord8_Parallel-8 2000000 659 ns/op 256 B/op 3 allocs/op BenchmarkRecord8_8Tags-8 3000000 390 ns/op 256 B/op 3 allocs/op PASS goos: darwin goarch: amd64 pkg: go.opencensus.io/stats/view BenchmarkRecordReqCommand-8 1000000 1839 ns/op 362 B/op 25 allocs/op
- Loading branch information