ClickHouse/benchmark/generate-results.sh

21 lines
371 B
Bash
Raw Normal View History

2022-07-08 04:42:56 +00:00
#!/bin/bash -e
2022-07-04 13:12:12 +00:00
2022-07-08 04:42:56 +00:00
(
sed '/^const data = \[$/q' index.html
FIRST=1
ls -1 */results/*.json | while read file
do
[ "${FIRST}" = "0" ] && echo ','
cat "${file}"
FIRST=0
done
echo ']; // end of data'
sed '0,/^\]; \/\/ end of data$/d' index.html
) > index.html.new
mv index.html index.html.bak
mv index.html.new index.html