prometheus/pkg/labels
Oleg Zaytsev 4d654ee22b
Benchmark Labels.Get() and document the result (#9242)
While implementing a different feature, I found that Labels.Get() was
performing a linear search. I wondered whether it would perform any
better with a binary search approach, and wrote a benchmark: the answer
is that it's probably doesn't worth it, so I just decided to leave the
benchmark and the results for the next reader.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2021-08-24 16:35:19 +05:30
..
labels.go labels: Reduce allocated memory and latency of Hash method; Added tests. (#8025) 2020-10-15 11:31:28 +01:00
labels_test.go Benchmark Labels.Get() and document the result (#9242) 2021-08-24 16:35:19 +05:30
matcher.go Use global string map for MatchType.String() (#9237) 2021-08-24 11:26:16 +05:30
matcher_test.go Use global string map for MatchType.String() (#9237) 2021-08-24 11:26:16 +05:30
regexp.go
regexp_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
test_utils.go