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,17 @@
# name: benchmark/micro/logger/storage/file/buffer_size/custom_100.benchmark
# description: benchmarking with a custom, 100 entry buffer size
# group: [buffer_size]
name Client Context Memory Logger
group logger
# Note: we write a single log entry to trigger the lazy file initialization
load
CALL enable_logging(level='info', storage_path='${BENCHMARK_DIR}/logging_enabled_client_context', storage_config={'buffer_size':100});
SELECT write_log('well hello hello hello hello hello hello world', level := 'info', scope := 'connection' );
run
SELECT write_log('well hello hello hello hello hello hello world', level := 'info', scope := 'connection' ) from range(0,20000);
cleanup
CALL truncate_duckdb_logs()

View File

@@ -0,0 +1,17 @@
# name: benchmark/micro/logger/storage/file/buffer_size/custom_20k.benchmark
# description: benchmarking with a custom, ~20k entry buffer size
# group: [buffer_size]
name Client Context Memory Logger
group logger
# Note: we write a single log entry to trigger the lazy file initialization
load
CALL enable_logging(level='info', storage_path='${BENCHMARK_DIR}/logging_enabled_client_context', storage_config={'buffer_size':10*2048});
SELECT write_log('well hello hello hello hello hello hello world', level := 'info', scope := 'connection' );
run
SELECT write_log('well hello hello hello hello hello hello world', level := 'info', scope := 'connection' ) from range(0,20000);
cleanup
CALL truncate_duckdb_logs()

View File

@@ -0,0 +1,17 @@
# name: benchmark/micro/logger/storage/file/buffer_size/custom_none.benchmark
# description: benchmarking with buffering disabled
# group: [buffer_size]
name Client Context Memory Logger
group logger
# Note: we write a single log entry to trigger the lazy file initialization
load
CALL enable_logging(level='info', storage_path='${BENCHMARK_DIR}/logging_enabled_client_context', storage_config={'buffer_size':0});
SELECT write_log('well hello hello hello hello hello hello world', level := 'info', scope := 'connection' );
run
SELECT write_log('well hello hello hello hello hello hello world', level := 'info', scope := 'connection' ) from range(0,20000);
cleanup
CALL truncate_duckdb_logs()

View File

@@ -0,0 +1,17 @@
# name: benchmark/micro/logger/storage/file/buffer_size/default_2048.benchmark
# description: benchmarking with the default, 2028 entry buffer size
# group: [buffer_size]
name Client Context Memory Logger
group logger
# Note: we write a single log entry to trigger the lazy file initialization
load
CALL enable_logging(level='info', storage_path='${BENCHMARK_DIR}/logging_enabled_client_context');
SELECT write_log('well hello hello hello hello hello hello world', level := 'info', scope := 'connection' );
run
SELECT write_log('well hello hello hello hello hello hello world', level := 'info', scope := 'connection' ) from range(0,20000);
cleanup
CALL truncate_duckdb_logs()

View File

@@ -0,0 +1,17 @@
# name: benchmark/micro/logger/storage/file/log_message_size/huge_string.benchmark
# description: test writing big strings as log messages
# group: [log_message_size]
name Client Context Memory Logger
group logger
# Note: we write a single log entry to trigger the lazy file initialization
load
CALL enable_logging(level='info', storage_path='${BENCHMARK_DIR}/logging_enabled_client_context');
SELECT write_log('hi', level := 'info', scope := 'connection' );
run
SELECT write_log(repeat('hellohello', 1000), level := 'info', scope := 'connection' ) from range(0,20000);
cleanup
CALL truncate_duckdb_logs()

View File

@@ -0,0 +1,17 @@
# name: benchmark/micro/logger/storage/file/log_message_size/small_string.benchmark
# description: test writing small strings as log messages
# group: [log_message_size]
name Client Context Memory Logger
group logger
# Note: we write a single log entry to trigger the lazy file initialization
load
CALL enable_logging(level='info', storage_path='${BENCHMARK_DIR}/logging_enabled_client_context');
SELECT write_log('hi', level := 'info', scope := 'connection' );
run
SELECT write_log('hi', level := 'info', scope := 'connection' ) from range(0,2000000);
cleanup
CALL truncate_duckdb_logs()

View File

@@ -0,0 +1,17 @@
# name: benchmark/micro/logger/storage/file/normalization/denormalized.benchmark
# description: test the denormalized (single file) log file output
# group: [normalization]
name Client Context Memory Logger
group logger
# Note: we write a single log entry to trigger the lazy file initialization
load
CALL enable_logging(level='info', storage_path='${BENCHMARK_DIR}/logging_enabled_client_context/file.csv');
SELECT write_log('well hello hello hello hello hello hello world', level := 'info', scope := 'connection' );
run
SELECT write_log('well hello hello hello hello hello hello world', level := 'info', scope := 'connection' ) from range(0,1000000);
cleanup
CALL truncate_duckdb_logs()

View File

@@ -0,0 +1,17 @@
# name: benchmark/micro/logger/storage/file/normalization/normalized.benchmark
# description: test the normalized (split file) log file output
# group: [normalization]
name Client Context Memory Logger
group logger
# Note: we write a single log entry to trigger the lazy file initialization
load
CALL enable_logging(level='info', storage_path='${BENCHMARK_DIR}/logging_enabled_client_context');
SELECT write_log('well hello hello hello hello hello hello world', level := 'info', scope := 'connection' );
run
SELECT write_log('well hello hello hello hello hello hello world', level := 'info', scope := 'connection' ) from range(0,1000000);
cleanup
CALL truncate_duckdb_logs()