textparse: Refactor benchmark testdata for all types.
Also: * split benchmark functions to make sure no one compares across parsers. * testdata file have meaningful names reflecting the type representation * promtestdata.txt now has all types, taken directly from long running Prometheus (https://demo.do.prometheus.io/) Needed for https://github.com/prometheus/prometheus/pull/15731 Signed-off-by:bwplotka <bwplotka@gmail.com>
Showing
- model/textparse/benchmark_test.go 213 additions, 135 deletionsmodel/textparse/benchmark_test.go
- model/textparse/testdata/1histogram.om.txt 0 additions, 0 deletionsmodel/textparse/testdata/1histogram.om.txt
- model/textparse/testdata/alltypes.237mfs.nometa.prom.txt 1858 additions, 0 deletionsmodel/textparse/testdata/alltypes.237mfs.nometa.prom.txt
- model/textparse/testdata/alltypes.237mfs.prom.txt 2332 additions, 0 deletionsmodel/textparse/testdata/alltypes.237mfs.prom.txt
- model/textparse/testdata/alltypes.5mfs.om.txt 0 additions, 0 deletionsmodel/textparse/testdata/alltypes.5mfs.om.txt
- model/textparse/testdata/promtestdata.nometa.txt 0 additions, 411 deletionsmodel/textparse/testdata/promtestdata.nometa.txt
- model/textparse/testdata/promtestdata.txt 0 additions, 529 deletionsmodel/textparse/testdata/promtestdata.txt
- scrape/scrape_test.go 17 additions, 8 deletionsscrape/scrape_test.go
Please register or sign in to comment