Skip to content

Commit

Permalink
Bump benchmark iteration count
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 26, 2021
1 parent 05fb118 commit 3dcb2fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions benches/bench-libproc-macro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Example output:
$ cargo check --release

Compiling bench-libproc-macro v0.0.0
STRING: 15 millis
TOKENSTREAM: 97 millis
Finished release [optimized] target(s) in 1.06s
STRING: 37 millis
TOKENSTREAM: 276 millis
Finished release [optimized] target(s) in 1.16s
```
2 changes: 1 addition & 1 deletion benches/bench-libproc-macro/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use proc_macro::{Ident, Punct, Spacing, Span, TokenStream, TokenTree};
use std::iter::once;
use std::time::Instant;

const N: u32 = 7000;
const N: u32 = 20000;

#[proc_macro]
pub fn bench(_input: TokenStream) -> TokenStream {
Expand Down

0 comments on commit 3dcb2fe

Please sign in to comment.