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,20 @@
# name: benchmark/micro/compression/bitpacking/bitpacking_read_constant.benchmark
# description: Scanning 1GB of ints compressed mostly with the CONSTANT bitpacking mode
# group: [bitpacking]
name Bitpacking Scan Constant Mode
group bitpacking
storage persistent
load
DROP TABLE IF EXISTS integers;
PRAGMA force_compression='bitpacking';
PRAGMA force_bitpacking_mode='constant';
CREATE TABLE integers AS SELECT (i/119000)::INT32 as i FROM range(0, 250000000) tbl(i);
checkpoint;
run
select avg(i) from integers;
result I
1049.9202

View File

@@ -0,0 +1,20 @@
# name: benchmark/micro/compression/bitpacking/bitpacking_read_constant_delta.benchmark
# description: Scanning 1GB of ints compressed mostly with the CONSTANT_DELTA bitpacking mode
# group: [bitpacking]
name Bitpacking Scan Constant Delta Mode
group bitpacking
storage persistent
load
DROP TABLE IF EXISTS integers;
PRAGMA force_compression='bitpacking';
PRAGMA force_bitpacking_mode='constant_delta';
CREATE TABLE integers AS SELECT i::INT32 as i FROM range(0, 250000000) tbl(i);
checkpoint;
run
select avg(i) from integers;
result I
124999999.5

View File

@@ -0,0 +1,20 @@
# name: benchmark/micro/compression/bitpacking/bitpacking_read_dfor.benchmark
# description: Scanning 1GB of ints compressed mostly with the Delta FOR bitpacking mode
# group: [bitpacking]
name Bitpacking Scan Delta For Mode
group bitpacking
storage persistent
load
DROP TABLE IF EXISTS integers;
PRAGMA force_compression='bitpacking';
PRAGMA force_bitpacking_mode='delta_for';
CREATE TABLE integers AS SELECT (i%4000000)::INT32 AS i FROM range(0, 250000000) tbl(i);
checkpoint;
run
select avg(i) from integers;
result I
1991999.5

View File

@@ -0,0 +1,20 @@
# name: benchmark/micro/compression/bitpacking/bitpacking_read_for.benchmark
# description: Scanning 1GB of ints compressed mostly with the FOR bitpacking mode
# group: [bitpacking]
name Bitpacking Scan For Mode
group bitpacking
storage persistent
load
DROP TABLE IF EXISTS integers;
PRAGMA force_compression='bitpacking';
PRAGMA force_bitpacking_mode='for';
CREATE TABLE integers AS SELECT (i%4000000)::INT32 AS i FROM range(0, 250000000) tbl(i);
checkpoint;
run
select avg(i) from integers;
result I
1991999.5

View File

@@ -0,0 +1,17 @@
# name: benchmark/micro/compression/bitpacking/bitpacking_store_constant.benchmark
# description: Storing 1GB of ints compressed mostly with the CONSTANT bitpacking mode
# group: [bitpacking]
name Bitpacking Insert Constant Mode
group bitpacking
storage persistent
require_reinit
load
PRAGMA force_compression='bitpacking';
PRAGMA force_bitpacking_mode='constant';
DROP TABLE IF EXISTS integers;
run
CREATE TABLE integers AS SELECT (i/119000)::INT32 as i FROM range(0, 250000000) tbl(i);
checkpoint;

View File

@@ -0,0 +1,17 @@
# name: benchmark/micro/compression/bitpacking/bitpacking_store_constant_delta.benchmark
# description: Storing 1GB of ints compressed mostly with the CONSTANT DELTA bitpacking mode
# group: [bitpacking]
name Bitpacking Insert Constant Delta Mode
group bitpacking
storage persistent
require_reinit
load
PRAGMA force_compression='bitpacking';
PRAGMA force_bitpacking_mode='constant_delta';
DROP TABLE IF EXISTS integers;
run
CREATE TABLE integers AS SELECT (i%250000000)::INT32 as i FROM range(0, 250000000) tbl(i);
checkpoint;

View File

@@ -0,0 +1,17 @@
# name: benchmark/micro/compression/bitpacking/bitpacking_store_dfor.benchmark
# description: Storing 1GB of ints compressed mostly with the DELTA FOR bitpacking mode
# group: [bitpacking]
name Bitpacking Insert Delta For Mode
group bitpacking
storage persistent
require_reinit
load
PRAGMA force_compression='bitpacking';
PRAGMA force_bitpacking_mode='delta_for';
DROP TABLE IF EXISTS integers;
run
CREATE TABLE integers AS SELECT CASE WHEN i%2=0 THEN 0 ELSE 2048 END AS i FROM range(0, 250000000) tbl(i);
checkpoint;

View File

@@ -0,0 +1,17 @@
# name: benchmark/micro/compression/bitpacking/bitpacking_store_for.benchmark
# description: Storing 1GB of ints compressed mostly with the FOR bitpacking mode
# group: [bitpacking]
name Bitpacking Insert For Mode
group bitpacking
storage persistent
require_reinit
load
PRAGMA force_compression='bitpacking';
PRAGMA force_bitpacking_mode='for';
DROP TABLE IF EXISTS integers;
run
CREATE TABLE integers AS SELECT (i%250000000)::INT32 AS i FROM range(0, 250000000) tbl(i);
checkpoint;