Files
turso/perf/connection/limbo/run-benchmark.sh
Glauber Costa 471a95bd96 add a benchmark for connection time versus number of tables
SQLite performs poorly for connections as the number of tables increase.

Do we perform better? the same? worse?

Right now the answer is worse. Add a benchmark to help us compare.
2025-07-01 20:10:21 -05:00

18 lines
481 B
Bash
Executable File

#!/bin/bash
echo "Building benchmark..."
cargo build --release
echo "Running connection benchmarks..."
echo "database,iterations,p50,p90,p95,p99,p999,p9999,p99999" > results.csv
# Test each database with different table counts
for db in database_10.db database_1k.db database_5k.db database_10k.db
do
echo "Testing $db..."
./target/release/limbo-connection-benchmark $db --iterations 1000 | tail -1 >> results.csv
done
echo "Results written to results.csv"
cat results.csv