domsleee / posh-tabcomplete

Blazing fast tab completion for powershell.
4 stars 1 forks source link

Feature/smaller binary #3

Closed domsleee closed 1 year ago

domsleee commented 1 year ago

Benchmarks are sort of negligible between configurations of opt-level, but the other additions lto, strip and codgen-units make the binary much smaller (without them, the binary size is 25.47MB)

System Init time + size
System1
(R5-5600X)
b: 317.8 ± 11.7, 25.47MB
3: 306.7 ± 9.4, 21.97MB
s: 302.7 ± 8.6, 16.68MB
z: 310.3 ± 9.7, 14.95MB
System2
(i9-11950H)
3: 356.0 ± 6.9, 22.20MB
s: 350.7 ± 9.7, 16.77MB
z: 348.8 ± 8.2, 15.03MB

I think it's ideal to go with opt-level = 's', since nushell does it

tabcomplete-benchmarks.zip