Skip to content

Commit

Permalink
opt: add new benchmark cases that filter histogram buckets
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
mgartner committed Dec 16, 2024
1 parent cc88696 commit 66cef0c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkg/sql/opt/bench/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,22 @@ var queries = [...]benchQuery{
query: "SELECT * FROM single_col_histogram WHERE k >= $1",
args: []interface{}{"'abc'"},
},
{
name: "single-col-histogram-bounded-range-small",
query: "SELECT * FROM single_col_histogram WHERE k >= $1 and k < $2",
args: []interface{}{
"'abcdefghijklmnopqrstuvwxyz___________________7325'",
"'abcdefghijklmnopqrstuvwxyz___________________7350'",
},
},
{
name: "single-col-histogram-bounded-range-big",
query: "SELECT * FROM single_col_histogram WHERE k >= $1 and k < $2",
args: []interface{}{
"'abcdefghijklmnopqrstuvwxyz___________________7325'",
"'abcdefghijklmnopqrstuvwxyz___________________9000'",
},
},
{
name: "json-insert",
query: `INSERT INTO json_table(k, i, j) VALUES (1, 10, '{"a": "foo", "b": "bar", "c": [2, 3, "baz", true, false, null]}')`,
Expand Down

0 comments on commit 66cef0c

Please sign in to comment.