File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,15 +7,7 @@ use divan::{Bencher, black_box};
77use uu_false:: uumain;
88use uucore:: benchmark:: run_util_function;
99
10- /// Benchmark the common case: false with no arguments
11- #[ divan:: bench]
12- fn false_no_args ( bencher : Bencher ) {
13- bencher. bench ( || {
14- black_box ( run_util_function ( uumain, & [ ] ) ) ;
15- } ) ;
16- }
17-
18- /// Benchmark multiple consecutive invocations (throughput test)
10+ /// Benchmark multiple consecutive invocations (avoid less than 1 ns)
1911#[ divan:: bench]
2012fn false_consecutive_calls ( bencher : Bencher ) {
2113 bencher. bench ( || {
Original file line number Diff line number Diff line change @@ -7,15 +7,7 @@ use divan::{Bencher, black_box};
77use uu_true:: uumain;
88use uucore:: benchmark:: run_util_function;
99
10- /// Benchmark the common case: true with no arguments
11- #[ divan:: bench]
12- fn true_no_args ( bencher : Bencher ) {
13- bencher. bench ( || {
14- black_box ( run_util_function ( uumain, & [ ] ) ) ;
15- } ) ;
16- }
17-
18- /// Benchmark multiple consecutive invocations (throughput test)
10+ /// Benchmark multiple consecutive invocations (avoid less than 1 ns)
1911#[ divan:: bench]
2012fn true_consecutive_calls ( bencher : Bencher ) {
2113 bencher. bench ( || {
You can’t perform that action at this time.
0 commit comments