third_party_rust_quote/benches
2021-12-26 14:14:55 -08:00
..
Cargo.toml Adapt benchmark to run in both macro and non-macro context 2021-12-26 13:22:02 -08:00
lib.rs Include a non-default span in proc macro benchmark 2021-12-26 13:48:05 -08:00
main.rs Include a non-default span in proc macro benchmark 2021-12-26 13:48:05 -08:00
README.md Add an example output in benchmark readme 2021-12-26 14:14:55 -08:00
timer.rs Adapt benchmark to run in both macro and non-macro context 2021-12-26 13:22:02 -08:00

Example output:

$ cargo run && cargo run --release

   Compiling quote v1.0.10
   Compiling quote-benchmark v0.0.0
macro in debug mode: 1655 micros
    Finished dev [unoptimized + debuginfo] target(s) in 4.39s
     Running `/git/quote/target/debug/quote-benchmark`
non-macro in debug mode: 1205 micros
   Compiling quote v1.0.10
   Compiling quote-benchmark v0.0.0
macro in release mode: 1635 micros
    Finished release [optimized] target(s) in 4.00s
     Running `/git/quote/target/release/quote-benchmark`
non-macro in release mode: 105 micros