VictoriaMetrics/lib/storage
Aliaksandr Valialkin b6f22a62cb lib/storage: increase the number of created time series in BenchmarkHeadPostingForMatchers in order to be on par with Promethues
The previous commit was accidentally creating 10x smaller number of time series than Prometheus
and this led to invalid benchmark results.

The updated benchmark results:

benchmark                                                          old ns/op      new ns/op     delta
BenchmarkHeadPostingForMatchers/n="1"                              272756688      6194893       -97.73%
BenchmarkHeadPostingForMatchers/n="1",j="foo"                      138132923      10781372      -92.19%
BenchmarkHeadPostingForMatchers/j="foo",n="1"                      134723762      10632834      -92.11%
BenchmarkHeadPostingForMatchers/n="1",j!="foo"                     195823953      10679975      -94.55%
BenchmarkHeadPostingForMatchers/i=~".*"                            7962582919     100118510     -98.74%
BenchmarkHeadPostingForMatchers/i=~".+"                            7589543864     154955671     -97.96%
BenchmarkHeadPostingForMatchers/i=~""                              1142371741     258003769     -77.42%
BenchmarkHeadPostingForMatchers/i!=""                              9964150263     159783895     -98.40%
BenchmarkHeadPostingForMatchers/n="1",i=~".*",j="foo"              216995884      10937895      -94.96%
BenchmarkHeadPostingForMatchers/n="1",i=~".*",i!="2",j="foo"       202541348      10990027      -94.57%
BenchmarkHeadPostingForMatchers/n="1",i!=""                        486285711      87004349      -82.11%
BenchmarkHeadPostingForMatchers/n="1",i!="",j="foo"                350776931      53342793      -84.79%
BenchmarkHeadPostingForMatchers/n="1",i=~".+",j="foo"              380888565      54256156      -85.76%
BenchmarkHeadPostingForMatchers/n="1",i=~"1.+",j="foo"             89500296       21823279      -75.62%
BenchmarkHeadPostingForMatchers/n="1",i=~".+",i!="2",j="foo"       379529654      46671359      -87.70%
BenchmarkHeadPostingForMatchers/n="1",i=~".+",i!~"2.*",j="foo"     424563825      53915842      -87.30%

VictoriaMetrics uses 1GB of RAM during the benchmark (vs 3.5GB of RAM for Prometheus)
2019-11-18 19:50:58 +02:00
..
block.go lib/storage: do not change timestamps to constant rate if values are constant or have constant delta 2019-08-06 15:40:07 +03:00
block_header.go lib/storage: pre-allocate memory for blockHeader slice in unmarshalBlockHeaders 2019-08-19 12:46:33 +03:00
block_header_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
block_stream_merger.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
block_stream_reader.go lib/storage: remove interface conversion in hot path during block merging 2019-11-03 12:33:34 +02:00
block_stream_reader_test.go all: add support for GOARCH=386 and fix all the issues related to 32-bit architectures such as GOARCH=arm 2019-10-17 18:23:23 +03:00
block_stream_reader_timing_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
block_stream_writer.go lib/storage: remove interface conversion in hot path during block merging 2019-11-03 12:33:34 +02:00
block_stream_writer_timing_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
index_db.go lib/storage: always start using per-day inverted index on the next day after its creation 2019-11-16 12:11:25 +02:00
index_db_test.go lib/storage: remove inmemory index for recent hour, since it uses too much memory 2019-11-13 17:58:07 +02:00
index_db_timing_test.go lib/storage: increase the number of created time series in BenchmarkHeadPostingForMatchers in order to be on par with Promethues 2019-11-18 19:50:58 +02:00
inmemory_part.go all: add vm_data_size_bytes metrics for easy monitoring of on-disk data size and on-disk inverted index size 2019-07-04 19:42:30 +03:00
inmemory_part_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
inmemory_part_timing_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
merge.go lib/storage: create and use lib/uint64set instead of map[uint64]struct{} 2019-09-24 21:17:55 +03:00
merge_test.go all: add support for GOARCH=386 and fix all the issues related to 32-bit architectures such as GOARCH=arm 2019-10-17 18:23:23 +03:00
merge_timing_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
metaindex_row.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
metaindex_row_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
metric_name.go lib/{storage,mergeset}: merge tag->metricID rows into tag->metricIDs rows for common tag values 2019-09-20 22:06:41 +03:00
metric_name_test.go lib/storage: pass pointer to MetricName in Fatalf, so it is properly detected as an interface with String() method 2019-11-04 01:07:19 +02:00
part.go all: add support for GOARCH=386 and fix all the issues related to 32-bit architectures such as GOARCH=arm 2019-10-17 18:23:23 +03:00
part_header.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
part_header_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
part_search.go lib/storage: share tsids across all the partSearch instances 2019-09-23 22:35:15 +03:00
part_search_test.go app/vmselect: optimize /api/v1/series by skipping storage data 2019-08-04 23:01:28 +03:00
partition.go lib/storage: return back finalPartsToMerge from 2 to 3 in order to prevent from excessive merges in old partitions 2019-11-05 17:27:48 +02:00
partition_search.go lib/storage: share tsids across all the partSearch instances 2019-09-23 22:35:15 +03:00
partition_search_test.go lib/storage: create and use lib/uint64set instead of map[uint64]struct{} 2019-09-24 21:17:55 +03:00
partition_test.go all: add support for GOARCH=386 and fix all the issues related to 32-bit architectures such as GOARCH=arm 2019-10-17 18:23:23 +03:00
raw_block.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
raw_row.go lib/storage: optimize TSID comparison 2019-09-26 14:16:02 +03:00
search.go app/vmselect: optimize /api/v1/series by skipping storage data 2019-08-04 23:01:28 +03:00
search_test.go lib/storage: remove inmemory index for recent hour, since it uses too much memory 2019-11-13 17:58:07 +02:00
storage.go lib/storage: add vm_cache_size_bytes{type="storage/hour_metric_ids"} metric 2019-11-13 20:24:21 +02:00
storage_test.go lib/storage: remove inmemory index for recent hour, since it uses too much memory 2019-11-13 17:58:07 +02:00
storage_timing_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
table.go lib/storage: populate partition names from both small and big directories 2019-11-06 19:49:34 +02:00
table_search.go lib/storage: share tsids across all the partSearch instances 2019-09-23 22:35:15 +03:00
table_search_test.go app/vmselect: optimize /api/v1/series by skipping storage data 2019-08-04 23:01:28 +03:00
table_search_timing_test.go app/vmselect: optimize /api/v1/series by skipping storage data 2019-08-04 23:01:28 +03:00
table_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
table_timing_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
tag_filters.go lib/storage: properly match labels against regexp with (?i) flag 2019-09-26 11:03:10 +03:00
tag_filters_test.go lib/storage: properly match labels against regexp with (?i) flag 2019-09-26 11:03:10 +03:00
tag_filters_timing_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
time.go lib/storage: remove unused code from getMetricIDsForTimeRange: it is expected that time range is always non-zero 2019-11-09 19:03:34 +02:00
time_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
tsid.go lib/storage: optimize TSID comparison 2019-09-26 14:16:02 +03:00
tsid_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00