1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

SQLite WebAssembly micro-benchmark and new build with a memory leak fix (#70)

This commit is contained in:
saaj
2021-08-05 18:35:31 +02:00
committed by GitHub
parent 2830df2adc
commit 848112979b
14 changed files with 499 additions and 115 deletions

21
lib/sql-js/benchmark/make.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash -e
if [ ! -f sample.csv ]; then
wget --header="accept-encoding: gzip" -q -O- \
https://github.com/plotly/datasets/raw/547090bd/wellspublic.csv \
| gunzip -c > sample.csv
fi
for d in lib/build-* ; do
rm -r lib/dist || true
cp -r $d lib/dist
name=$(basename $d)
docker build -t sqliteviz/sqljs-benchmark:$name .
docker rm sqljs-benchmark-$name 2> /dev/null || true
docker run -it --name sqljs-benchmark-$name sqliteviz/sqljs-benchmark:$name
docker cp sqljs-benchmark-$name:/tmp/build/suite-result.json ${name}-result.json
docker rm sqljs-benchmark-$name
done
rm -r lib/dist