benchmark-toolbox: add benchmark-toolbox

a unified benchmarking tool
This commit is contained in:
souldbminersmwc
2026-06-07 21:10:53 -04:00
parent 8ebf887956
commit 4a5e889c40
1252 changed files with 356811 additions and 491 deletions

View File

@@ -0,0 +1,30 @@
#!/bin/bash
cd "$( dirname "${BASH_SOURCE[0]}" )/.."
FIX=""
COLOR="auto"
for v in "$@"; do
if [[ "$v" == "--no-ansi" ]] || [[ "$v" == "-n" ]]; then
COLOR="never"
fi
if [[ "$v" == "--fix" ]] || [[ "$v" == "-f" ]]; then
FIX="1"
fi
done
function clang_format_run() {
python ./scripts/run-clang-format.py -r \
--clang-format-executable="clang-format-8" \
--color="$COLOR" \
--exclude ./library/include/borealis/extern \
--exclude ./library/lib/extern \
./library ./demo
}
if [[ -z "$FIX" ]]; then
clang_format_run
else
clang_format_run | patch -p1 -N -r -
fi