summaryrefslogtreecommitdiff
path: root/benchmarks/record_batch_read.py
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/record_batch_read.py')
-rw-r--r--benchmarks/record_batch_read.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/benchmarks/record_batch_read.py b/benchmarks/record_batch_read.py
index 7ae471e..fc01e42 100644
--- a/benchmarks/record_batch_read.py
+++ b/benchmarks/record_batch_read.py
@@ -35,7 +35,8 @@ def prepare(magic):
size = batch.append(
random.randint(*TIMESTAMP_RANGE),
random_bytes(KEY_SIZE),
- random_bytes(VALUE_SIZE))
+ random_bytes(VALUE_SIZE),
+ headers=[])
assert size
batch.close()
samples.append(bytes(batch.buffer()))
@@ -78,3 +79,4 @@ def func(loops, magic):
runner = perf.Runner()
runner.bench_time_func('batch_read_v0', func, 0)
runner.bench_time_func('batch_read_v1', func, 1)
+runner.bench_time_func('batch_read_v2', func, 2)