upgrade bazel-zig-cc and benchmarks
Note that this was now taken on a machine with active anti-virus. Previously it was anti-virus-free.
12
README.md
@ -25,14 +25,14 @@ Baseline llvm14 without sandbox: 12 seconds:
|
|||||||
bazel build --extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux //:zigzag-0
|
bazel build --extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux //:zigzag-0
|
||||||
bazel clean; bazel shutdown
|
bazel clean; bazel shutdown
|
||||||
bazel --batch build --spawn_strategy=local --extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux ...
|
bazel --batch build --spawn_strategy=local --extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux ...
|
||||||
INFO: Elapsed time: 11.971s, Critical Path: 0.41s
|
INFO: Elapsed time: 13.268s, Critical Path: 1.19s
|
||||||
|
|
||||||
zig cc without the sandbox. 15 seconds:
|
zig cc without the sandbox. 15 seconds:
|
||||||
|
|
||||||
bazel build --spawn_strategy=local --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 //:zigzag-0
|
bazel build --spawn_strategy=local --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 //:zigzag-0
|
||||||
bazel clean; bazel shutdown
|
bazel clean; bazel shutdown
|
||||||
bazel --batch build --spawn_strategy=local --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ...
|
bazel --batch build --spawn_strategy=local --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ...
|
||||||
INFO: Elapsed time: 15.631s, Critical Path: 1.99s
|
INFO: Elapsed time: 23.836s, Critical Path: 3.47s
|
||||||
|
|
||||||
Cost of Sandbox
|
Cost of Sandbox
|
||||||
---------------
|
---------------
|
||||||
@ -42,14 +42,14 @@ llvm 14:
|
|||||||
bazel build --extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux //:zigzag-0
|
bazel build --extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux //:zigzag-0
|
||||||
bazel clean; bazel shutdown
|
bazel clean; bazel shutdown
|
||||||
bazel --batch build --extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux ...
|
bazel --batch build --extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux ...
|
||||||
INFO: Elapsed time: 109.677s, Critical Path: 13.60s
|
INFO: Elapsed time: 89.776s, Critical Path: 12.01s
|
||||||
|
|
||||||
zig cc:
|
zig cc:
|
||||||
|
|
||||||
bazel build --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 //:zigzag-0
|
bazel build --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 //:zigzag-0
|
||||||
bazel clean; bazel shutdown
|
bazel clean; bazel shutdown
|
||||||
bazel --batch build --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ...
|
bazel --batch build --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ...
|
||||||
INFO: Elapsed time: 116.370s, Critical Path: 16.23s
|
INFO: Elapsed time: 58.919s, Critical Path: 8.38s
|
||||||
|
|
||||||
Possible mitigation: Sandboxfs
|
Possible mitigation: Sandboxfs
|
||||||
------------------------------
|
------------------------------
|
||||||
@ -88,14 +88,14 @@ llvm 14:
|
|||||||
bazel build --experimental_reuse_sandbox_directories --extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux //:zigzag-0
|
bazel build --experimental_reuse_sandbox_directories --extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux //:zigzag-0
|
||||||
bazel clean; bazel shutdown
|
bazel clean; bazel shutdown
|
||||||
bazel --batch build --experimental_reuse_sandbox_directories --extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux ...
|
bazel --batch build --experimental_reuse_sandbox_directories --extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux ...
|
||||||
INFO: Elapsed time: 25.252s, Critical Path: 4.44s
|
INFO: Elapsed time: 18.335s, Critical Path: 2.00s
|
||||||
|
|
||||||
zig cc:
|
zig cc:
|
||||||
|
|
||||||
bazel build --experimental_reuse_sandbox_directories --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 //:zigzag-0
|
bazel build --experimental_reuse_sandbox_directories --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 //:zigzag-0
|
||||||
bazel clean; bazel shutdown
|
bazel clean; bazel shutdown
|
||||||
bazel --batch build --experimental_reuse_sandbox_directories --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ...
|
bazel --batch build --experimental_reuse_sandbox_directories --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ...
|
||||||
INFO: Elapsed time: 29.132s, Critical Path: 3.88s
|
INFO: Elapsed time: 34.777s, Critical Path: 4.71s
|
||||||
|
|
||||||
|
|
||||||
Flame graphs and discussion
|
Flame graphs and discussion
|
||||||
|
Before Width: | Height: | Size: 893 KiB After Width: | Height: | Size: 1021 KiB |
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 945 KiB |
113
results/llvm.svg
Before Width: | Height: | Size: 702 KiB After Width: | Height: | Size: 937 KiB |
Before Width: | Height: | Size: 1005 KiB After Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 930 KiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 836 KiB After Width: | Height: | Size: 1.1 MiB |