prometheus/model
Nick Pillitteri 53ac9d6d66
Compare equality of label.Label structs directly (#10427)
* 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>
2022-03-15 00:30:04 +01:00
..
exemplar Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
labels Compare equality of label.Label structs directly (#10427) 2022-03-15 00:30:04 +01:00
relabel Switch to grafana/regexp everywhere (#10268) 2022-02-13 00:58:27 +01:00
rulefmt Expose Error function for WrappedError (#9662) 2021-11-12 17:38:59 -05:00
textparse Specify type in metadata parser errors (#10269) 2022-03-08 08:04:11 -05:00
timestamp Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
value Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00