test-zig-cc/results/hyperfine.sh

11 lines
592 B
Bash
Raw Normal View History

#!/bin/bash
set -x
exec hyperfine \
--export-markdown=results/hyperfine.md \
2022-12-20 12:40:46 +02:00
--runs 10 \
-L toolchain ,--extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux,--extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux,--platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 \
2022-12-20 12:40:46 +02:00
-L sandbox_strategy "--spawn_strategy=local,--experimental_reuse_sandbox_directories,--spawn_strategy=sandboxed" \
-p "bazel build {toolchain} {sandbox_strategy} //:zigzag-0; bazel clean; bazel shutdown" \
"bazel build {toolchain} {sandbox_strategy} //..."