Closed Bug 1863497 Opened 8 months ago Closed 7 months ago

Upgrade sccache to 0.7.1, direct/preprocessor mode by default and enable adv stats

Categories

(Firefox Build System :: Toolchains, task)

task

Tracking

(firefox122 fixed)

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

Details

Attachments

(3 files, 1 obsolete file)

No description provided.
Assignee: nobody → sledru
Status: NEW → ASSIGNED

Depends on D192930

Attachment #9362311 - Attachment is obsolete: true
Summary: Upgrade sccache to 0.7.0 and enable adv stats → Upgrade sccache to 0.7.1, direct/preprocessor mode by default and enable adv stats

with

cargo install sccache

Some benchmark results with sccache direct/processor mode (took 19m to run this benchmark) :

hyperfine --warmup 1 "bash bench-without.sh" "bash bench-with.sh"
Benchmark 1: bash bench-without.sh
  Time (mean ± σ):     69.406 s ±  4.229 s    [User: 275.969 s, System: 53.104 s]
  Range (min … max):   63.897 s … 75.104 s    10 runs

Benchmark 2: bash bench-with.sh
  Time (mean ± σ):     30.454 s ±  1.541 s    [User: 271.775 s, System: 51.225 s]
  Range (min … max):   29.026 s … 33.550 s    10 runs

Summary
  bash bench-with.sh ran
    2.28 ± 0.18 times faster than bash bench-without.sh

My ugly scripts

bench-without.sh:

cd ~/.mozbuild/sccache/
rm -f *
ln -s ~/.cargo/bin/sccache
cd -

killall sccache

~/.cargo/bin/sccache --start-server

fd '\.o$' obj-* | xargs rm && time ./mach build
~/.cargo/bin/sccache --show-adv-stats

bench-with.sh

cd ~/.mozbuild/sccache/
rm -f *
ln -s ~/.cargo/bin/sccache
cd -

killall sccache

SCCACHE_DIRECT=true ~/.cargo/bin/sccache --start-server

fd '\.o$' obj-* | xargs rm && time ./mach build
~/.cargo/bin/sccache --show-adv-stats
Attachment #9362312 - Attachment description: Bug 1863497 - Upgrade sccache to 0.7.0 r?glandium → Bug 1863497 - Upgrade sccache to 0.7.2 r?glandium

Depends on D192932

Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1caa79ee637e
Upgrade sccache to 0.7.2 r=glandium
https://hg.mozilla.org/integration/autoland/rev/c959dafcf46f
sccache: enable --show-adv-stats when storing stats r=glandium
https://hg.mozilla.org/integration/autoland/rev/ce9934edcec1
sccache: update the doc r=glandium
Flags: needinfo?(sledru)
Attachment #9362312 - Attachment description: Bug 1863497 - Upgrade sccache to 0.7.2 r?glandium → Bug 1863497 - Upgrade sccache to 0.7.4 r?glandium
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6e2d251d7e5e
Upgrade sccache to 0.7.4 r=glandium
https://hg.mozilla.org/integration/autoland/rev/ab7d4ec6fce6
sccache: enable --show-adv-stats when storing stats r=glandium
https://hg.mozilla.org/integration/autoland/rev/7d38b1ea5653
sccache: update the doc r=glandium
Blocks: 1866934
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
Blocks: 1876046
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: