In the root of rust repo, set [rust] parallel-compiler = true
in config.toml
(Optional) If there was an existing compilation before, you need to run ./x.py clean
6f087ac1c17723a84fd45f445c9887dbff61f8c0 is a try build commit for –enable-parallel-compiler
compare with 80e7cde2238e837a9d6a240af9a3253f469bb2cf (bors master)
cargo -jN
rustc -Zthreads=N
The configuration/changes to perf to support multi-thread benchmarks (TODO - @simulacrum)
The (possibly) perf support for full crate graph build times (TODO - @simulacrum)
https://docs.google.com/spreadsheets/d/1bNQJSDhbmOKbtb8EKg40C7D_gboayDpDoC-eQO6XbdI/edit#gid=0
Wall time, single crate:
0
is a sequential compiler for reference;
1
is-Zthreads=1
which shows the seq overhead;
2
is-Zthreads=2
which shows the benefit from parallel
> ./rustc-stage0-single-threaded <
552.759227012 seconds time elapsed ( ± 0.13% )
> ./rustc-stage0-multi-threaded-t2-j8 <
683.030195011 seconds time elapsed ( ± 5.02% )
> ./rustc-stage0-multi-threaded-t2-j16 <
688.029377313 seconds time elapsed ( ± 7.82% )
> ./rustc-stage0-multi-threaded-t4-j16 <
710.423041145 seconds time elapsed ( ± 8.60% )
> ./rustc-stage0-multi-threaded-t16-j16 <
812.783412266 seconds time elapsed ( ± 8.37% )
> ./rustc-stage0-multi-threaded-t2-j4 <
957.243363191 seconds time elapsed ( ± 5.62% )
> ./cargo-multi-threaded-t1-j1 <
553.290588371 seconds time elapsed ( ± 0.05% )
> ./cargo-multi-threaded-t2-j1 <
553.770275596 seconds time elapsed ( ± 0.03% )
> ./cargo-multi-threaded-t3-j1 <
553.533103358 seconds time elapsed ( ± 0.04% )
> ./cargo-multi-threaded-t4-j1 <
553.758315225 seconds time elapsed ( ± 0.03% )
> ./cargo-multi-threaded-t6-j1 <
553.333730522 seconds time elapsed ( ± 0.03% )
> ./cargo-multi-threaded-t8-j1 <
553.487285875 seconds time elapsed ( ± 0.03% )
Mark's initial thoughts:
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing