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
Ben Johnson
307bb6af9c
Improve bulk series file writes.
2019-04-05 14:38:58 -06:00
Mark Rushakoff
d73d73c0d4
chore: rename imports from platform to influxdb
...
I did this with a dumb editor macro, so some comments changed too.
Also rename root package from platform to influxdb.
In interest of minimizing risk, anyone importing the root package has
now aliased it to "platform" so that no changes beyond imports were
necessary in those files.
Lastly, replace the old platform module to local path /dev/null so that
nobody can accidentally reintroduce a platform dependency while
migrating platform code to influxdb.
2019-01-09 20:51:47 -08:00
Edd Robinson
6b63a3def7
Add option to disable sfile metrics
2018-12-10 14:36:28 +00:00
Edd Robinson
b015757c06
Ensure all tsi1 metrics support multiple instances
2018-12-07 14:32:34 +00:00
Edd Robinson
bff655786f
Ensure tsdb metrics properly registered
2018-12-07 14:32:34 +00:00
Edd Robinson
79b108d174
Fix bug with slice reuse
2018-12-07 14:32:34 +00:00
Edd Robinson
f9a2f7a017
go fmt
2018-12-07 14:32:34 +00:00
Edd Robinson
e0c10227d0
Fix metric issue in series file
2018-12-07 14:32:34 +00:00
Edd Robinson
7960ccc320
Add TSI index metrics
2018-12-07 14:32:34 +00:00
Edd Robinson
55caa0fe54
Add RHH metrics
2018-12-07 14:32:34 +00:00
Edd Robinson
d1fe2bc188
Add series file metrics
2018-12-07 14:32:34 +00:00
Edd Robinson
fb0db04bc1
Initial import pkg package
2018-10-01 12:03:20 +01:00