File tree Expand file tree Collapse file tree 1 file changed +2
-27
lines changed
Expand file tree Collapse file tree 1 file changed +2
-27
lines changed Original file line number Diff line number Diff line change @@ -6,31 +6,6 @@ use test::Bencher;
66
77#[ bench]
88fn 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- let mut state = [ 0u64 ; STATE_WORDS ] ;
19- b. iter ( || {
20- for _ in 0 ..10 {
21- bash_f ( test:: black_box ( & mut state) ) ;
22- }
23- test:: black_box ( & state) ;
24- } ) ;
25- }
26-
27- #[ bench]
28- fn bench_bash_f_100_rounds ( b : & mut Bencher ) {
29- let mut state = [ 0u64 ; STATE_WORDS ] ;
30- b. iter ( || {
31- for _ in 0 ..100 {
32- bash_f ( test:: black_box ( & mut state) ) ;
33- }
34- test:: black_box ( & state) ;
35- } ) ;
9+ let state = & mut [ 0u64 ; STATE_WORDS ] ;
10+ b. iter ( || bash_f ( test:: black_box ( state) ) ) ;
3611}
You can’t perform that action at this time.
0 commit comments