Xe said that it'd be interesting to see how quickly my laptop builds the application that drives xer site, so I built it.
Twenty times.
And here are the results.
❯ neofetch
'c. julia@MacBook-Pro-van-Julia.local
,xNMM. ----------------------------------
.OMMMMo OS: macOS 11.2.3 20D91 x86_64
OMMM0, Host: MacBookPro15,1
.;loddo:' loolloddol;. Kernel: 20.3.0
cKMMMMMMMMMMNWMMMMMMMMMM0: Uptime: 1 hour
.KMMMMMMMMMMMMMMMMMMMMMMMWd. Packages: 133 (brew)
XMMMMMMMMMMMMMMMMMMMMMMMX. Shell: fish 3.2.0
;MMMMMMMMMMMMMMMMMMMMMMMM: Resolution: 1680x1050@2x
:MMMMMMMMMMMMMMMMMMMMMMMM: DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX. WM: Quartz Compositor
kMMMMMMMMMMMMMMMMMMMMMMMMWd. WM Theme: Blue (Dark)
.XMMMMMMMMMMMMMMMMMMMMMMMMMMk Terminal: iTerm2
.XMMMMMMMMMMMMMMMMMMMMMMMMK. Terminal Font: IBMPlexMono 13
kMMMMMMMMMMMMMMMMMMMMMMd CPU: Intel i7-8750H (12) @ 2.20GHz
;KMMMMMMMWXXWMMMMMMMk. GPU: Intel UHD Graphics 630, Radeon Pro 555X
.cooc,. .,coo:. Memory: 7524MiB / 16384MiB
❯ cargo --version
cargo 1.50.0 (f04e7fab7 2021-02-04)
❯ rustc --version
rustc 1.50.0 (cb75ad5db 2021-02-10)
❯ hyperfine --version
hyperfine 1.11.0
Xe/site
SHA
❯ git rev-parse HEAD
fe2063d5e8f631212e5ed4604473b8f2557213d4
Note: I first ran
cargo check; cargo clean
in order to download the dependencies. This is not included in the benchmark time.
❯ hyperfine 'cargo clean; cargo build' 'cargo clean; cargo build --release'
Benchmark #1: cargo clean; cargo build
Time (mean ± σ): 109.377 s ± 2.375 s [User: 563.949 s, System: 38.946 s]
Range (min … max): 107.677 s … 114.008 s 10 runs
Benchmark #2: cargo clean; cargo build --release
Time (mean ± σ): 166.979 s ± 1.938 s [User: 1369.296 s, System: 45.444 s]
Range (min … max): 162.120 s … 169.415 s 10 runs
Summary
'cargo clean; cargo build' ran
1.53 ± 0.04 times faster than 'cargo clean; cargo build --release'
It took about 46 minutes to run the benchmark.