2022-12-20 11:32:17 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
|
|
|
|
exec hyperfine \
|
|
|
|
--export-markdown=results/hyperfine.md \
|
2022-12-20 12:40:46 +02:00
|
|
|
--runs 10 \
|
2022-12-20 11:32:17 +02:00
|
|
|
-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" \
|
2022-12-20 11:32:17 +02:00
|
|
|
-p "bazel build {toolchain} {sandbox_strategy} //:zigzag-0; bazel clean; bazel shutdown" \
|
|
|
|
"bazel build {toolchain} {sandbox_strategy} //..."
|