1
Fork 0

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.
main
Motiejus Jakštys 2022-12-13 23:03:32 +02:00
parent cda8e6063f
commit 1e74015da5
8 changed files with 276 additions and 721 deletions

View File

@ -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 clean; bazel shutdown
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:
bazel build --spawn_strategy=local --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 //:zigzag-0
bazel clean; bazel shutdown
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
---------------
@ -42,14 +42,14 @@ llvm 14:
bazel build --extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux //:zigzag-0
bazel clean; bazel shutdown
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:
bazel build --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 //:zigzag-0
bazel clean; bazel shutdown
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
------------------------------
@ -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 clean; bazel shutdown
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:
bazel build --experimental_reuse_sandbox_directories --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 //:zigzag-0
bazel clean; bazel shutdown
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

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 893 KiB

After

Width:  |  Height:  |  Size: 1021 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 945 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 702 KiB

After

Width:  |  Height:  |  Size: 937 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1005 KiB

After

Width:  |  Height:  |  Size: 1.0 MiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 930 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 836 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB