should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
# name: benchmark/micro/index/point/in_filter_with_index_scan.benchmark
# description: Benchmark the performance of adaptively choosing an index scan for an IN filter.
# group: [point]
name IN filter with index scan
group art
require tpch
load
CALL dbgen(sf=1);
SET index_scan_percentage = 1.0;
CREATE TABLE random_orders AS (
(SELECT o_orderkey FROM orders OFFSET 100 LIMIT 3)
UNION
(SELECT o_orderkey FROM orders
OFFSET (SELECT COUNT(*) FROM orders) / 2 LIMIT 3)
UNION
(SELECT o_orderkey FROM orders
OFFSET (SELECT COUNT(*) FROM orders) / 2 + 100000 LIMIT 3));
CREATE TABLE orders_shuffled AS FROM orders ORDER BY random();
ALTER TABLE orders_shuffled ADD PRIMARY KEY (o_orderkey);
run
SELECT o_orderkey FROM orders_shuffled WHERE o_orderkey IN (
SELECT UNNEST(LIST(o_orderkey)) FROM random_orders
) ORDER BY ALL;

View File

@@ -0,0 +1,18 @@
# name: benchmark/micro/index/point/point_query_with_art.benchmark
# description: Point query with an ART on randomly ordered data
# group: [point]
name Point Query (ART)
group art
load
SET index_scan_percentage = 1.0;
CREATE TABLE integers AS
SELECT (i * 9876983769044::INT128 % 100000000)::INT64 AS i, i + 2 AS j FROM range(0, 100000000) t(i);
CREATE INDEX i_index ON integers USING ART(i);
run
SELECT i FROM integers WHERE i = 50000 LIMIT 1
result I
50000

View File

@@ -0,0 +1,17 @@
# name: benchmark/micro/index/point/point_query_with_art_and_many_keys.benchmark
# description: Point query with an ART and many duplicate keys.
# group: [point]
name Point Query (ART) With Many Keys
group art
load
SET index_scan_percentage = 1.0;
CREATE TABLE integers AS SELECT range % 100 AS i FROM range(10000000);
CREATE INDEX i_index ON integers USING ART(i);
run
SELECT COUNT(i) FROM integers WHERE i = '42';
result I
100000