Help test out ThinLTO!

panopticon which has pretty horrible compile times:

RUSTFLAGS='-C codegen-units=16 -Z thinlto' cargo +nightly build --release
Finished release [optimized] target(s) in 408.28 secs
Finished release [optimized] target(s) in 344.5 secs

cargo +nightly build --release
Finished release [optimized] target(s) in 599.45 secs

cargo bench
running 2 tests
test disassemble_static_amd64_elf_new ... bench: 5,211,118,293 ns/iter (+/- 109,697,682)
test disassemble_static_amd64_elf_old ... bench: 16,908,245,920 ns/iter (+/- 613,322,513)

RUSTFLAGS='-C codegen-units=16 -Z thinlto' cargo +nightly bench
running 2 tests
test disassemble_static_amd64_elf_new ... bench: 2,973,503,415 ns/iter (+/- 218,444,217)
test disassemble_static_amd64_elf_old ... bench: 6,114,065,079 ns/iter (+/- 521,222,947)

I’d be amazed if the bench was that affected; i will try on more realistic thing i have some numbers and report back difference; otherwise, looks like really great work, congrats! can’t wait till this is in stable :slight_smile: