ClickHouse/benchmark/generate-results.sh

12 lines
349 B
Bash
Raw Normal View History

2022-07-04 13:12:12 +00:00
#!/bin/bash
2022-07-06 22:28:56 +00:00
ls -1 */results/*.txt | while read file
do
SYSTEM=$(echo "$file" | grep -oP '^[\w-]+');
SETUP=$(echo "$file" | sed -r -e 's/^.*\/([a-zA-Z0-9_.-]+)\.txt$/\1/');
echo "{\"system\": \"${SYSTEM}\", \"machine\": \"${SETUP}\", \"time\": \"$(git log -1 --pretty="format:%cs" $file)\", \"result\": [
2022-07-04 13:12:12 +00:00
$(grep -P '^\[.+\]' $file)
2022-07-06 22:28:56 +00:00
]},"
done