more data
This commit is contained in:
parent
2dc25f0e3e
commit
2b348f814b
28
README.md
28
README.md
@ -11,24 +11,26 @@ llvm14: 12-13 seconds to compile 64 binaries on an 8-core machine:
|
||||
|
||||
```
|
||||
$ bazel clean; bazel shutdown; bazel build --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux ...
|
||||
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
|
||||
Starting local Bazel server and connecting to it...
|
||||
INFO: Analyzed 64 targets (41 packages loaded, 1426 targets configured).
|
||||
INFO: Found 64 targets...
|
||||
INFO: Elapsed time: 12.454s, Critical Path: 1.11s
|
||||
INFO: 321 processes: 193 internal, 128 linux-sandbox.
|
||||
INFO: Build completed successfully, 321 total actions
|
||||
```
|
||||
|
||||
zig cc: 2,5 minutes:
|
||||
zig cc: 142 seconds:
|
||||
|
||||
```
|
||||
$ bazel clean; bazel shutdown; bazel build --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ...
|
||||
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
|
||||
Starting local Bazel server and connecting to it...
|
||||
INFO: Analyzed 64 targets (41 packages loaded, 14450 targets configured).
|
||||
INFO: Found 64 targets...
|
||||
INFO: Elapsed time: 142.264s, Critical Path: 20.65s
|
||||
INFO: 257 processes: 129 internal, 128 linux-sandbox.
|
||||
INFO: Build completed successfully, 257 total actions
|
||||
```
|
||||
|
||||
zig cc with `--sandbox_base=/dev/shm`: 40 seconds:
|
||||
|
||||
```
|
||||
bazel clean; bazel shutdown; bazel build --sandbox_base=/dev/shm --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ...
|
||||
INFO: Elapsed time: 42.251s, Critical Path: 5.26s
|
||||
```
|
||||
|
||||
zig cc without the sandbox (which means zig will treat its dependencies as the same file): 17 seconds:
|
||||
|
||||
```
|
||||
bazel clean; bazel shutdown; bazel build --spawn_strategy=local --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ...
|
||||
INFO: Elapsed time: 17.021s, Critical Path: 1.67s
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user