I decided to run it on a small crate with basically no dependencies, to make sure that there’s no significant regressions there. I’m also on Windows.
First build, just to give you a general idea.
> Measure-Command { cargo +nightly build --release }
Compiling semver-parser v0.7.0
Compiling semver v0.9.0 (file:///C:/Users/steve/src/semver)
Finished release [optimized] target(s) in 4.7 secs
Days : 0
Hours : 0
Minutes : 0
Seconds : 4
Milliseconds : 541
Ticks : 45413291
TotalDays : 5.25616793981481E-05
TotalHours : 0.00126148030555556
TotalMinutes : 0.0756888183333333
TotalSeconds : 4.5413291
TotalMilliseconds : 4541.3291
with incremental on:
> Measure-Command { cargo +nightly build --release }
Compiling semver-parser v0.7.0
Compiling semver v0.9.0 (file:///C:/Users/steve/src/semver)
Finished release [optimized] target(s) in 4.43 secs
Days : 0
Hours : 0
Minutes : 0
Seconds : 5
Milliseconds : 71
Ticks : 50710922
TotalDays : 5.86931967592593E-05
TotalHours : 0.00140863672222222
TotalMinutes : 0.0845182033333333
TotalSeconds : 5.0710922
TotalMilliseconds : 5071.0922
touching lib.rs:
> Measure-Command { cargo +nightly build --release }
Compiling semver v0.9.0 (file:///C:/Users/steve/src/semver)
Finished release [optimized] target(s) in 0.92 secs
Days : 0
Hours : 0
Minutes : 0
Seconds : 1
Milliseconds : 354
Ticks : 13546301
TotalDays : 1.56785891203704E-05
TotalHours : 0.000376286138888889
TotalMinutes : 0.0225771683333333
TotalSeconds : 1.3546301
TotalMilliseconds : 1354.6301
adding a let binding to a method
> Measure-Command { cargo +nightly build --release }
Compiling semver v0.9.0 (file:///C:/Users/steve/src/semver)
warning: unused variable: `x`
--> src\version.rs:241:13
|
241 | let x = 1;
| ^
|
= note: #[warn(unused_variables)] on by default
= note: to avoid this warning, consider using `_x` instead
Finished release [optimized] target(s) in 1.10 secs
Days : 0
Hours : 0
Minutes : 0
Seconds : 1
Milliseconds : 590
Ticks : 15908323
TotalDays : 1.84124108796296E-05
TotalHours : 0.000441897861111111
TotalMinutes : 0.0265138716666667
TotalSeconds : 1.5908323
TotalMilliseconds : 1590.8323