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,22 @@
# name: benchmark/micro/compression/zstd/zstd_read.benchmark
# description: ZSTD decompression speed of relatively big (8000 byte) strings
# group: [zstd]
name ZSTD Scan
group zstd
storage persistent v1.2.0
load
DROP TABLE IF EXISTS zstd_strings;
PRAGMA force_compression='zstd';
set variable my_string = (list_reduce([chr(((i % 26) + ord('a'))::INTEGER) for i in range(8000)], (x, y) -> concat(x, y)));
create table zstd_strings as select getvariable('my_string') as data from range(2_500_000) tbl(i);
checkpoint;
assert I
select DISTINCT compression from pragma_storage_info('zstd_strings') where segment_type in ('VARCHAR')
----
ZSTD
run
select avg(strlen(data)) from zstd_strings;