mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
6 lines
432 B
Bash
Executable File
6 lines
432 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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} (${SETUP})\", \"version\": \"\", \"data_size\": 100000000, \"time\": \"2022-07-01 00:00:00\", \"comments\": \"\", \"result\": [
|
|
$(grep -P '^\[.+\]' $file)
|
|
]}]" > ../website/benchmark/dbms/results/${SYSTEM}.${SETUP}.json; done
|