mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-04 08:54:20 +01:00
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.
18 lines
481 B
Bash
Executable File
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
|