mirror of https://github.com/prometheus/prometheus
Browse Source
* labels.Equal benchmark for equal, not equal, and differing lengths Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com> * Compare equality of label.Label structs directly Compare the structs using `==` instead of the name and value of each label. This is functionally equivalent and about ~10% faster in my testing. Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com> * Use longer more realistic names and values in benchmark Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>pull/10450/head
Nick Pillitteri
3 years ago
committed by
GitHub
2 changed files with 31 additions and 1 deletions
Loading…
Reference in new issue