diff --git a/geopoint/challenges/default.json b/geopoint/challenges/default.json index 025465f41..a39417472 100644 --- a/geopoint/challenges/default.json +++ b/geopoint/challenges/default.json @@ -283,12 +283,24 @@ "iterations": 50, "tags": ["distance", "esql"] }, + { + "operation": "distanceFilterCount200x300-alt", + "warmup-iterations": 50, + "iterations": 50, + "tags": ["distance", "esql"] + }, { "operation": "distanceFilterCount200x300-esql", "warmup-iterations": 50, "iterations": 50, "tags": ["distance", "esql"] }, + { + "operation": "distanceFilterCount200x300-esql-evals", + "warmup-iterations": 10, + "iterations": 10, + "tags": ["distance", "esql"] + }, { "operation": "distanceFilterCount300", "warmup-iterations": 50, @@ -315,14 +327,14 @@ }, { "operation": "distanceSort", - "warmup-iterations": 200, - "iterations": 100, + "warmup-iterations": 50, + "iterations": 50, "tags": ["distance", "sort"] }, { "operation": "distanceSort-esql", - "warmup-iterations": 1, - "iterations": 1, + "warmup-iterations": 50, + "iterations": 50, "tags": ["distance", "esql", "sort"] }, { @@ -333,8 +345,8 @@ }, { "operation": "distanceFilterSort-esql", - "warmup-iterations": 1, - "iterations": 1, + "warmup-iterations": 200, + "iterations": 100, "tags": ["distance", "esql", "sort"] }, { diff --git a/geopoint/operations/default.json b/geopoint/operations/default.json index eedb15856..54bfbcf8d 100644 --- a/geopoint/operations/default.json +++ b/geopoint/operations/default.json @@ -453,11 +453,57 @@ } } }, + { + "name": "distanceFilterCount200x300-alt", + "operation-type": "search", + "body": { + "query": { + "bool": { + "must": [ + { + "geo_shape": { + "location": { + "shape": { "type": "circle", "radius": "300km", "coordinates": [7, 55] }, + "relation": "intersects" + } + } + }, + { + "bool": { + "must_not": [ + { + "geo_shape": { + "location": { + "shape": { "type": "circle", "radius": "200km", "coordinates": [7, 55] }, + "relation": "intersects" + } + } + } + ] + } + } + ] + } + }, + "aggs": { + "count": { + "value_count": { + "field": "location" + } + } + } + } + }, { "name": "distanceFilterCount200x300-esql", "operation-type": "esql", "query": "FROM osmgeopoints | WHERE ST_Distance(location, TO_GEOPOINT(\"POINT(7.0 55.0)\")) >= 200000 AND ST_Distance(location, TO_GEOPOINT(\"POINT(7.0 55.0)\")) <= 300000 | STATS count=COUNT(*)" }, + { + "name": "distanceFilterCount200x300-esql-evals", + "operation-type": "esql", + "query": "FROM osmgeopoints | EVAL point=TO_GEOPOINT(\"POINT(7.0 55.0)\") | EVAL distance=ST_Distance(location, point) | WHERE distance >= 200000 AND distance <= 300000 | STATS count=COUNT(*)" + }, { "name": "distanceFilterCount300", "operation-type": "search",