about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-slice-array.js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-02-29 14:33:52 +0100
committerGitHub <noreply@github.com>2024-02-29 14:33:52 +0100
commitb52b6997a378828660c62ba01c5761400553b857 (patch)
treed525abc6bebb38d675bf27ea84c05dd4fda794ad /tests/rustdoc-js-std/parser-slice-array.js
parentad74598dbc9fb815c5f0961ab5d0a2201753b607 (diff)
parentc54d92c56e6f3380bb43e306d62535e24a45d211 (diff)
downloadrust-b52b6997a378828660c62ba01c5761400553b857.tar.gz
rust-b52b6997a378828660c62ba01c5761400553b857.zip
Rollup merge of #121781 - RalfJung:bootstrap-fmt, r=clubby789
bootstrap/format: send larger batches to rustfmt

This helps on systems with low core counts. To benchmark this I made a lot of files be modified:
```
for FILE in $(find compiler/ -name "*.rs"); do echo "// end of the file" >>$FILE; done
```
Then I ran
```
hyperfine "./x.py fmt -j1" -w 1 -r 4
```
Before this patch:
```
Benchmark 1: ./x.py fmt -j1
  Time (mean ± σ):      3.426 s ±  0.032 s    [User: 4.681 s, System: 1.376 s]
  Range (min … max):    3.389 s …  3.462 s    4 runs
```
With this patch:
```
Benchmark 1: ./x.py fmt -j1
  Time (mean ± σ):      2.530 s ±  0.054 s    [User: 4.042 s, System: 0.467 s]
  Range (min … max):    2.452 s …  2.576 s    4 runs
```
Diffstat (limited to 'tests/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions