-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mock: add Counters, Gauges and Timers methods to get a map of all sta…
…ts (#90) * mock: Sink replace mutex with atomic.Value This improves Sink performance when called in parallel. ``` benchmark old ns/op new ns/op delta BenchmarkFlushCounter-12 50.4 51.9 +2.98% BenchmarkFlushCounter_Parallel-12 36.5 10.5 -71.23% BenchmarkFlushTimer-12 52.1 49.8 -4.41% BenchmarkFlushTimer_Parallel-12 42.0 13.5 -67.86% benchmark old allocs new allocs delta BenchmarkFlushCounter-12 0 0 +0.00% BenchmarkFlushCounter_Parallel-12 0 0 +0.00% BenchmarkFlushTimer-12 0 0 +0.00% BenchmarkFlushTimer_Parallel-12 0 0 +0.00% benchmark old bytes new bytes delta BenchmarkFlushCounter-12 0 0 +0.00% BenchmarkFlushCounter_Parallel-12 0 0 +0.00% BenchmarkFlushTimer-12 0 0 +0.00% BenchmarkFlushTimer_Parallel-12 0 0 +0.00% ``` * mock: add Counters, Gauges and Timers methods to get a map of all stats This PR also increases test coverage.
- Loading branch information
1 parent
d95cbc0
commit f9add79
Showing
3 changed files
with
291 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.