From c953edbe3813ff074029d671036dba6a28585fff Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 27 Jun 2022 00:39:23 +0200 Subject: [PATCH] Compatible benchmark --- benchmark/compatible/duckdb/run.sh | 3 +++ benchmark/compatible/mysql-myisam/benchmark.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/benchmark/compatible/duckdb/run.sh b/benchmark/compatible/duckdb/run.sh index 5287c2e8d47..68cea914794 100755 --- a/benchmark/compatible/duckdb/run.sh +++ b/benchmark/compatible/duckdb/run.sh @@ -3,5 +3,8 @@ cat queries.sql | while read query; do sync echo 3 | sudo tee /proc/sys/vm/drop_caches >/dev/null + + # We need to restart and reinitialize DuckDB after every query, + # because it often fails with Segmentation fault (core dumped) ./query.py <<< "${query}" done diff --git a/benchmark/compatible/mysql-myisam/benchmark.sh b/benchmark/compatible/mysql-myisam/benchmark.sh index c70ff807b1c..2119f547bc0 100755 --- a/benchmark/compatible/mysql-myisam/benchmark.sh +++ b/benchmark/compatible/mysql-myisam/benchmark.sh @@ -16,7 +16,7 @@ sudo mysql -e "CREATE DATABASE test" sudo mysql test < create.sql time sudo mysql test -e "LOAD DATA LOCAL INFILE 'hits.tsv' INTO TABLE hits" -# 2:37:52 elapsed +# ./run.sh 2>&1 | tee log.txt