-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(metrics): Use a priority queue for metrics aggregator (#3845)
Uses a priority queue for the metrics aggregator: - improves worst case performance massively (huge aggregator, small flushes) - makes the performance for fast flushes (small aggregators, all flushed) slightly worse ``` bench_flush_metrics/same metric on different projects time: [18.261 µs 21.705 µs 25.368 µs] change: [+97.208% +144.62% +196.81%] (p = 0.00 < 0.05) Performance has regressed. ``` ``` bench_flush_metrics/a lot of metrics from a lot of projects with mix of backdated buckets and non time: [21.889 ms 22.119 ms 22.365 ms] change: [-67.986% -67.566% -67.127%] (p = 0.00 < 0.05) Performance has improved. Found 2 outliers among 100 measurements (2.00%) ```
- Loading branch information
Showing
4 changed files
with
76 additions
and
39 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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