influxdb/pkg/rhh
Edd Robinson 94dbbdca7b perf(storage): memoize hashmap prom labels
Prior to this, each hashmap operation that was instrumented involved
initialising a map. Now these maps are pre-initialised.

```
⇒  benchstat old.txt new.txt
name                                                     old time/op    new time/op    delta
Index_CreateSeriesListIfNotExist/create_series-8            5.00s ± 3%     5.13s ± 2%   +2.50%  (p=0.033 n=10+7)
Index_CreateSeriesListIfNotExist/already_exist_series-8     557ms ± 3%     530ms ± 6%   -4.85%  (p=0.001 n=10+8)

name                                                     old alloc/op   new alloc/op   delta
Index_CreateSeriesListIfNotExist/create_series-8           2.57GB ± 0%    1.84GB ± 1%  -28.52%  (p=0.000 n=8+10)
Index_CreateSeriesListIfNotExist/already_exist_series-8     678MB ± 0%     308MB ± 0%  -54.55%  (p=0.000 n=10+8)

name                                                     old allocs/op  new allocs/op  delta
Index_CreateSeriesListIfNotExist/create_series-8            28.9M ± 0%     24.5M ± 0%  -15.22%  (p=0.000 n=9+10)
Index_CreateSeriesListIfNotExist/already_exist_series-8     2.23M ± 0%     0.03M ± 0%  -98.51%  (p=0.000 n=10+10)
```
2019-08-13 11:28:51 +01:00
..
metrics.go Ensure all tsi1 metrics support multiple instances 2018-12-07 14:32:34 +00:00
metrics_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
rhh.go perf(storage): memoize hashmap prom labels 2019-08-13 11:28:51 +01:00
rhh_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00