Skip to content

Commit

Permalink
Benchmark for date_histo with one bucket (#165)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nik9000 authored Apr 5, 2021
1 parent 5ca9444 commit 0c72b79
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions noaa/challenges/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
15 changes: 15 additions & 0 deletions noaa/operations/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0c72b79

Please sign in to comment.