We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 868527a commit b7f8770Copy full SHA for b7f8770
1 file changed
bash-f/benches/mod.rs
@@ -6,31 +6,6 @@ use test::Bencher;
6
7
#[bench]
8
fn bench_bash_f(b: &mut Bencher) {
9
- let mut state = [0u64; STATE_WORDS];
10
- b.iter(|| {
11
- bash_f(test::black_box(&mut state));
12
- test::black_box(&state);
13
- });
14
-}
15
-
16
-#[bench]
17
-fn bench_bash_f_10_rounds(b: &mut Bencher) {
18
19
20
- for _ in 0..10 {
21
22
- }
23
24
25
26
27
28
-fn bench_bash_f_100_rounds(b: &mut Bencher) {
29
30
31
- for _ in 0..100 {
32
33
34
35
+ let state = &mut [0u64; STATE_WORDS];
+ b.iter(|| bash_f(test::black_box(state)));
36
}
0 commit comments