mirror of https://github.com/prometheus/prometheus
Browse Source
strings.Compare isn't meant to be used, and this way we save one comparison which is thus very slightly cheaper. benchmark old ns/op new ns/op delta BenchmarkPostingsForMatchers/Head/n="1"-4 236305440 233515705 -1.18% Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>pull/6547/head
Brian Brazil
5 years ago
committed by
GitHub
1 changed files with 12 additions and 5 deletions
Loading…
Reference in new issue