From d5c49c17c7afe0c8dac5983fca4c0be0ae150fe3 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 7 Oct 2025 09:56:32 +0300 Subject: [PATCH] perf/throughput: Delete database before benchmark run Let's reduce variance between benchmark runs by starting with an empty database. --- perf/throughput/rusqlite/scripts/bench.sh | 1 + perf/throughput/turso/scripts/bench.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/perf/throughput/rusqlite/scripts/bench.sh b/perf/throughput/rusqlite/scripts/bench.sh index a4efcc6e5..7d9f13207 100755 --- a/perf/throughput/rusqlite/scripts/bench.sh +++ b/perf/throughput/rusqlite/scripts/bench.sh @@ -6,6 +6,7 @@ echo "system,threads,batch_size,compute,throughput" for threads in 1 2 4 8; do for compute in 0 100 500 1000; do + rm -f write_throughput_test.db* ../../../target/release/write-throughput-sqlite --threads ${threads} --batch-size 100 --compute ${compute} -i 1000 done done diff --git a/perf/throughput/turso/scripts/bench.sh b/perf/throughput/turso/scripts/bench.sh index 6d6f75d4b..27ad51e0b 100755 --- a/perf/throughput/turso/scripts/bench.sh +++ b/perf/throughput/turso/scripts/bench.sh @@ -6,6 +6,7 @@ echo "system,threads,batch_size,compute,throughput" for threads in 1 2 4 8; do for compute in 0 100 500 1000; do + rm -f write_throughput_test.db* ../../../target/release/write-throughput --threads ${threads} --batch-size 100 --compute ${compute} -i 1000 --mode concurrent done done