This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't record measurements with no subscription (#600)
Suggested by Ramon, immediately dropping the measurements from the measures with no subscription rather than doing it at a later time significantly improves the performance on the critical path. Before: BenchmarkRecord0-8 500000000 3.09 ns/op BenchmarkRecord1-8 5000000 366 ns/op BenchmarkRecord8-8 3000000 412 ns/op BenchmarkRecord8_Parallel-8 2000000 804 ns/op BenchmarkRecord8_8Tags-8 3000000 415 ns/op After: BenchmarkRecord0-8 1000000000 2.58 ns/op BenchmarkRecord1-8 30000000 36.9 ns/op BenchmarkRecord8-8 20000000 89.4 ns/op BenchmarkRecord8_Parallel-8 30000000 44.8 ns/op BenchmarkRecord8_8Tags-8 20000000 90.1 ns/op
- Loading branch information
Showing
6 changed files
with
72 additions
and
10 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
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
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