should be it
This commit is contained in:
24
external/duckdb/benchmark/micro/compression/alprd/alprd_read.benchmark
vendored
Normal file
24
external/duckdb/benchmark/micro/compression/alprd/alprd_read.benchmark
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# name: benchmark/micro/compression/alprd/alprd_read.benchmark
|
||||
# description: Scanning a large amount of doubles
|
||||
# group: [alprd]
|
||||
|
||||
name Alprd Scan
|
||||
group alprd
|
||||
storage persistent
|
||||
require parquet
|
||||
require httpfs
|
||||
|
||||
load
|
||||
DROP TABLE IF EXISTS integers;
|
||||
PRAGMA force_compression='alprd';
|
||||
CREATE TABLE temperatures (
|
||||
temperature DOUBLE
|
||||
);
|
||||
INSERT INTO temperatures SELECT temp FROM 'https://github.com/duckdb/duckdb-data/releases/download/v1.0/city_temperature.parquet' t(temp), range(28);
|
||||
checkpoint;
|
||||
|
||||
run
|
||||
select avg(temperature) from temperatures;
|
||||
|
||||
result I
|
||||
56.028391124637494
|
||||
16
external/duckdb/benchmark/micro/compression/alprd/alprd_read_best_case.benchmark
vendored
Normal file
16
external/duckdb/benchmark/micro/compression/alprd/alprd_read_best_case.benchmark
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# name: benchmark/micro/compression/alprd/alprd_read_best_case.benchmark
|
||||
# description: ALPRD best case scenario is when all the floats share their front bits
|
||||
# group: [alprd]
|
||||
|
||||
name Alprd Scan
|
||||
group alprd
|
||||
storage persistent
|
||||
|
||||
load
|
||||
DROP TABLE IF EXISTS alprd_random_doubles;
|
||||
PRAGMA force_compression='alprd';
|
||||
create table alprd_random_doubles as select (random() + 10)::DOUBLE as data from range(200000000) tbl(i);
|
||||
checkpoint;
|
||||
|
||||
run
|
||||
select avg(data) from alprd_random_doubles;
|
||||
16
external/duckdb/benchmark/micro/compression/alprd/alprd_read_worst_case.benchmark
vendored
Normal file
16
external/duckdb/benchmark/micro/compression/alprd/alprd_read_worst_case.benchmark
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# name: benchmark/micro/compression/alprd/alprd_read_worst_case.benchmark
|
||||
# description: ALPRD worst case scenario is when all the float have unique front bits. Multiplying by different powers of two ensures us unique front bits
|
||||
# group: [alprd]
|
||||
|
||||
name Alprd Scan
|
||||
group alprd
|
||||
storage persistent
|
||||
|
||||
load
|
||||
DROP TABLE IF EXISTS alprd_random_doubles;
|
||||
PRAGMA force_compression='alprd';
|
||||
create table alprd_random_doubles as select (random() * pow(2, (i % 1000)) * (CASE WHEN i%2=0 THEN 1 ELSE -1 END))::DOUBLE as data from range(200000000) tbl(i);
|
||||
checkpoint;
|
||||
|
||||
run
|
||||
select avg(data) from alprd_random_doubles;
|
||||
27
external/duckdb/benchmark/micro/compression/alprd/alprd_store.benchmark
vendored
Normal file
27
external/duckdb/benchmark/micro/compression/alprd/alprd_store.benchmark
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
# name: benchmark/micro/compression/alprd/alprd_store.benchmark
|
||||
# description: Scanning a large amount of doubles
|
||||
# group: [alprd]
|
||||
|
||||
name Alprd Insert
|
||||
group alprd
|
||||
storage persistent
|
||||
require_reinit
|
||||
require parquet
|
||||
require httpfs
|
||||
|
||||
load
|
||||
PRAGMA force_compression='uncompressed';
|
||||
DROP TABLE IF EXISTS temperatures_uncompressed;
|
||||
CREATE TABLE temperatures_uncompressed (
|
||||
temperature DOUBLE
|
||||
);
|
||||
INSERT INTO temperatures_uncompressed SELECT temp FROM 'https://github.com/duckdb/duckdb-data/releases/download/v1.0/city_temperature.parquet' t(temp), range(28);
|
||||
CREATE TABLE temperatures_alprd (
|
||||
temperature DOUBLE
|
||||
);
|
||||
PRAGMA force_compression='alprd';
|
||||
checkpoint;
|
||||
|
||||
run
|
||||
INSERT INTO temperatures_alprd SELECT * FROM temperatures_uncompressed;
|
||||
checkpoint;
|
||||
17
external/duckdb/benchmark/micro/compression/alprd/alprd_store_best_case.benchmark
vendored
Normal file
17
external/duckdb/benchmark/micro/compression/alprd/alprd_store_best_case.benchmark
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# name: benchmark/micro/compression/alprd/alprd_store_best_case.benchmark
|
||||
# description: ALPRD best case scenario is when all the floats share their front bits.
|
||||
# group: [alprd]
|
||||
|
||||
name Alprd Insert
|
||||
group alprd
|
||||
storage persistent
|
||||
require_reinit
|
||||
|
||||
load
|
||||
DROP TABLE IF EXISTS alprd_random_doubles;
|
||||
PRAGMA force_compression='alprd';
|
||||
checkpoint;
|
||||
|
||||
run
|
||||
create table alprd_random_doubles as select (random() + 10)::DOUBLE as data from range(50000000) tbl(i);
|
||||
checkpoint;
|
||||
17
external/duckdb/benchmark/micro/compression/alprd/alprd_store_worst_case.benchmark
vendored
Normal file
17
external/duckdb/benchmark/micro/compression/alprd/alprd_store_worst_case.benchmark
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# name: benchmark/micro/compression/alprd/alprd_store_worst_case.benchmark
|
||||
# description: ALPRD worst case scenario is when all the float have unique front bits. Multiplying by different powers of two ensures us unique front bits
|
||||
# group: [alprd]
|
||||
|
||||
name Alprd Insert
|
||||
group alprd
|
||||
storage persistent
|
||||
require_reinit
|
||||
|
||||
load
|
||||
DROP TABLE IF EXISTS alprd_random_doubles;
|
||||
PRAGMA force_compression='alprd';
|
||||
checkpoint;
|
||||
|
||||
run
|
||||
create table alprd_random_doubles as select (random() * pow(2, (i % 1000)) * (CASE WHEN i%2=0 THEN 1 ELSE -1 END))::DOUBLE as data from range(50000000) tbl(i);
|
||||
checkpoint;
|
||||
Reference in New Issue
Block a user