mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-21 09:04:19 +01:00
Add TPC-H instructions to PERF.md
This commit is contained in:
25
PERF.md
25
PERF.md
@@ -32,3 +32,28 @@ make clickbench
|
||||
|
||||
This will build Limbo in release mode, create a database, and run the benchmarks with a small subset of the Clickbench dataset.
|
||||
It will run the queries for both Limbo and SQLite, and print the results.
|
||||
|
||||
## TPC-H
|
||||
|
||||
1. Clone the Taratool TPC-H benchmarking tool:
|
||||
|
||||
```shell
|
||||
git clone git@github.com:tarantool/tpch.git
|
||||
```
|
||||
|
||||
2. Patch the benchmark runner script:
|
||||
|
||||
```patch
|
||||
diff --git a/bench_queries.sh b/bench_queries.sh
|
||||
index 6b894f9..c808e9a 100755
|
||||
--- a/bench_queries.sh
|
||||
+++ b/bench_queries.sh
|
||||
@@ -4,7 +4,7 @@ function check_q {
|
||||
local query=queries/$*.sql
|
||||
(
|
||||
echo $query
|
||||
- time ( sqlite3 TPC-H.db < $query > /dev/null )
|
||||
+ time ( ../../limbo/target/release/limbo -m list TPC-H.db < $query > /dev/null )
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user