From 0c72b79279798948a1c6a36baf3fa04bb047dd49 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Mon, 5 Apr 2021 03:27:21 -0400 Subject: [PATCH] Benchmark for date_histo with one bucket (#165) This adds a benchmark for `date_histogram` when a single bucket covers the entire index. We expect this to be quite common for buckets with a size near a day. Its fairly common for folks to use "daily" indices that contain *about* a day's worth of data. That day isn't likely to line up *exactly* with daily buckets. But for buckets marginally larger than a day and for indices even a little smaller than a day I think it'll be quite common. --- noaa/challenges/default.json | 7 +++++++ noaa/operations/default.json | 15 +++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/noaa/challenges/default.json b/noaa/challenges/default.json index b181d7b5..81c20755 100644 --- a/noaa/challenges/default.json +++ b/noaa/challenges/default.json @@ -436,6 +436,13 @@ "iterations": 50, "target-interval": 3 }, + { + "operation": "date-histo-entire-range", + "clients": 1, + "warmup-iterations": 100, + "iterations": 500, + "target-interval": 0.2 + }, { "operation": "date-histo-numeric-terms", "clients": 1, diff --git a/noaa/operations/default.json b/noaa/operations/default.json index 6b903cc1..8a763253 100644 --- a/noaa/operations/default.json +++ b/noaa/operations/default.json @@ -870,6 +870,21 @@ } } }, + { + "name": "date-histo-entire-range", + "operation-type": "search", + "body": { + "size": 0, + "aggs": { + "date": { + "date_histogram": { + "field": "date", + "fixed_interval": "2000d" + } + } + } + } + }, { "name": "date-histo-numeric-terms", "operation-type": "search",