Skip to content

--test -Z lto optimizes the benchmarks out #11902

Closed
@ghost

Description

Without LTO:

running 4 tests
test xxhash::rust::test ... ok
test xxhash::native::test ... ok
test xxhash::native::bench ... bench:     75535 ns/iter (+/- 564) = 3470 MB/s
test xxhash::rust::bench   ... bench:     68471 ns/iter (+/- 953) = 3828 MB/s

test result: ok. 2 passed; 0 failed; 0 ignored; 2 measured

With LTO:

running 4 tests
test xxhash::rust::test ... ok
test xxhash::native::test ... ok
test xxhash::native::bench ... bench:     75598 ns/iter (+/- 109) = 3467 MB/s
test xxhash::rust::bench   ... bench:         0 ns/iter (+/- 0) = 262144000 MB/s

test result: ok. 2 passed; 0 failed; 0 ignored; 2 measured

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions