mirror of https://github.com/grafana/loki
Rounds chunk bytes to kb in tsdb and includes benchmarking script (#5479)
* rounds chunk bytes to kb in tsdb and includes benchmarking script * shellcheck * fix querier testpull/5487/head
parent
6c84304430
commit
0a5e01ba01
@ -0,0 +1,18 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
old=$1 |
||||
new=$2 |
||||
|
||||
echo benchmarks: |
||||
echo |
||||
|
||||
benchstat \ |
||||
<(LOKI_TSDB_PATH="${old}" go test github.com/grafana/loki/tools/tsdb/tsdb-map -bench=BenchmarkQuery -run '^$' -benchmem) \ |
||||
<(LOKI_TSDB_PATH="${new}" go test github.com/grafana/loki/tools/tsdb/tsdb-map -bench=BenchmarkQuery -run '^$' -benchmem) |
||||
|
||||
echo |
||||
echo sizing: |
||||
echo |
||||
|
||||
ls -lh "${old}" |
||||
ls -lh "${new}" |
||||
Loading…
Reference in new issue