velvet-chess icon indicating copy to clipboard operation
velvet-chess copied to clipboard

bench, pgo, release profile

Open mibere opened this issue 8 months ago • 2 comments

Hi there,

are there plans to implement a 'bench' command, that can be used for PGO during compilation and to compare different compile settings?

And, is there a benefit to set a release profile in Cargo.toml?

[profile.release]
...

with settings like opt-level, lto, panic, strip

Here we read

If you want to maximize runtime speed, consider all of the following: codegen-units = 1, lto = "fat", an alternative allocator, and panic = "abort".

Example

[profile.release]
codegen-units = 1
opt-level = 3
lto = = "fat"
panic = "abort"
strip = true

Thanks for your engine, your time and work. Keep on!

mibere avatar Jun 29 '24 08:06 mibere