From 5870c92e9e895aafbfc252a403036bd2b916f6b3 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Wed, 5 Feb 2025 13:33:38 +0200 Subject: [PATCH] core/mvcc: Fix MVCC benchmark SIGKILL The `begin_tx` benchmark makes no sense because it just fills up memory with transaction metadata, eventually killing the process... --- core/benches/mvcc_benchmark.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/benches/mvcc_benchmark.rs b/core/benches/mvcc_benchmark.rs index 14fc2d61e..899c8b82d 100644 --- a/core/benches/mvcc_benchmark.rs +++ b/core/benches/mvcc_benchmark.rs @@ -14,13 +14,6 @@ fn bench(c: &mut Criterion) { let mut group = c.benchmark_group("mvcc-ops-throughput"); group.throughput(Throughput::Elements(1)); - let db = bench_db(); - group.bench_function("begin_tx", |b| { - b.to_async(FuturesExecutor).iter(|| async { - db.begin_tx(); - }) - }); - let db = bench_db(); group.bench_function("begin_tx + rollback_tx", |b| { b.to_async(FuturesExecutor).iter(|| async {