should be it
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# name: benchmark/micro/logger/logging_overhead/duckdb_persistent_q1_with_default_logging.benchmark
|
||||
# description: Test overhead on query that writes lineitem sf1 to a duckdb database and runs Q1 on it
|
||||
# group: [logging_overhead]
|
||||
|
||||
name Q1 (Parquet)
|
||||
group logger
|
||||
subgroup logging_overhead
|
||||
|
||||
require parquet
|
||||
require tpch
|
||||
|
||||
load
|
||||
CALL dbgen(sf=1);
|
||||
CALL enable_logging(storage_path='${BENCHMARK_DIR}/duckdb_persistent_q1_with_default_logging')
|
||||
|
||||
run
|
||||
ATTACH '${BENCHMARK_DIR}/duckdb_persistent_q1_with_default_logging.db' as my_db;
|
||||
CREATE OR REPLACE TABLE my_db.lineitem AS FROM memory.lineitem;
|
||||
use my_db;
|
||||
PRAGMA tpch(1);
|
||||
|
||||
cleanup
|
||||
CALL truncate_duckdb_logs();
|
||||
use memory;
|
||||
DETACH my_db;
|
||||
|
||||
result extension/tpch/dbgen/answers/sf1/q01.csv
|
||||
@@ -0,0 +1,24 @@
|
||||
# name: benchmark/micro/logger/logging_overhead/parquet_q1_with_default_logging.benchmark
|
||||
# description: Test overhead on query that writes lineitem sf1 to a duckdb database and runs Q1 on it
|
||||
# group: [logging_overhead]
|
||||
|
||||
name Q1 (Parquet)
|
||||
group logger
|
||||
subgroup logging_overhead
|
||||
|
||||
require parquet
|
||||
require tpch
|
||||
|
||||
load
|
||||
CALL dbgen(sf=1, suffix='_normal');
|
||||
CALL enable_logging(storage_path='${BENCHMARK_DIR}/parquet_q1_with_logging')
|
||||
|
||||
run
|
||||
COPY lineitem_normal TO '${BENCHMARK_DIR}/parquet_q1_with_logging.parquet';
|
||||
CREATE OR REPLACE VIEW lineitem AS SELECT * FROM read_parquet('${BENCHMARK_DIR}/parquet_q1_with_logging.parquet');
|
||||
PRAGMA tpch(1)
|
||||
|
||||
cleanup
|
||||
CALL truncate_duckdb_logs()
|
||||
|
||||
result extension/tpch/dbgen/answers/sf1/q01.csv
|
||||
@@ -0,0 +1,24 @@
|
||||
# name: benchmark/micro/logger/logging_overhead/parquet_q1_with_filesystem_logging.benchmark
|
||||
# description: Execute Q1 over lineitem stored in a parquet file with filesystem logging enabled. This comes at a significant, but reasonable overhead.
|
||||
# group: [logging_overhead]
|
||||
|
||||
name Q1 (Parquet)
|
||||
group logger
|
||||
subgroup logging_overhead
|
||||
|
||||
require parquet
|
||||
require tpch
|
||||
|
||||
load
|
||||
CALL dbgen(sf=1, suffix='_normal');
|
||||
CALL enable_logging('FileSystem', storage_path='${BENCHMARK_DIR}/parquet_q1_with_logging')
|
||||
|
||||
run
|
||||
COPY lineitem_normal TO '${BENCHMARK_DIR}/parquet_q1_with_logging.parquet';
|
||||
CREATE OR REPLACE VIEW lineitem AS SELECT * FROM read_parquet('${BENCHMARK_DIR}/parquet_q1_with_logging.parquet');
|
||||
PRAGMA tpch(1)
|
||||
|
||||
cleanup
|
||||
CALL truncate_duckdb_logs()
|
||||
|
||||
result extension/tpch/dbgen/answers/sf1/q01.csv
|
||||
Reference in New Issue
Block a user