Closed
Description
#[bench]
functions that have the wrong type signature get silently ignored. This should be an error.- Running a compiled thing with
#[bench]
s in it yields:
running 1 test
test g ... bench: 16 ns/iter (+/- 0)
result: ok. 0 passed; 0 failed; 0 ignored
The last line (0 passed/0 failed/0 ignored) is confusing here, since it did run something.
- I don't think there's much documentation of
#[bench]
-- specifically that you have to compile with--test
and run with--bench
.
Metadata
Metadata
Assignees
Labels
No labels