File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ similarly named benchmarks like `foobar`):
30
30
31
31
Benchmarks are built with the ` --test ` option to ` rustc ` which creates a
32
32
special executable by linking your code with libtest. The executable
33
- automatically runs all functions annotated with ` #[test] ` and ` #[ bench]`
34
- attributes. Cargo passes the ` --bench ` flag to the test harness to tell
35
- it to run only benchmarks.
33
+ automatically runs all functions annotated with ` #[bench] ` attribute.
34
+ Cargo passes the ` --bench ` flag to the test harness to tell it to run
35
+ only benchmarks.
36
36
37
37
The libtest harness may be disabled by setting ` harness = false ` in the target
38
38
manifest settings, in which case your code will need to provide its own ` main `
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ DESCRIPTION
25
25
26
26
Benchmarks are built with the --test option to rustc which creates a
27
27
special executable by linking your code with libtest. The executable
28
- automatically runs all functions annotated with #[test] and #[ bench]
29
- attributes. Cargo passes the --bench flag to the test harness to tell it
30
- to run only benchmarks.
28
+ automatically runs all functions annotated with #[bench] attribute.
29
+ Cargo passes the --bench flag to the test harness to tell it to run only
30
+ benchmarks.
31
31
32
32
The libtest harness may be disabled by setting harness = false in the
33
33
target manifest settings, in which case your code will need to provide
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ similarly named benchmarks like `foobar`):
30
30
31
31
Benchmarks are built with the ` --test ` option to ` rustc ` which creates a
32
32
special executable by linking your code with libtest. The executable
33
- automatically runs all functions annotated with ` #[test] ` and ` #[ bench]`
34
- attributes. Cargo passes the ` --bench ` flag to the test harness to tell
35
- it to run only benchmarks.
33
+ automatically runs all functions annotated with ` #[bench] ` attribute.
34
+ Cargo passes the ` --bench ` flag to the test harness to tell it to run
35
+ only benchmarks.
36
36
37
37
The libtest harness may be disabled by setting ` harness = false ` in the target
38
38
manifest settings, in which case your code will need to provide its own ` main `
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ cargo bench \-\- foo \-\-exact
30
30
.sp
31
31
Benchmarks are built with the \fB \-\- test \fR option to \fB rustc \fR which creates a
32
32
special executable by linking your code with libtest. The executable
33
- automatically runs all functions annotated with \fB #[test] \fR and \fB #[ bench]\fR
34
- attributes. Cargo passes the \fB \-\- bench \fR flag to the test harness to tell
35
- it to run only benchmarks.
33
+ automatically runs all functions annotated with \fB #[bench] \fR attribute.
34
+ Cargo passes the \fB \-\- bench \fR flag to the test harness to tell it to run
35
+ only benchmarks.
36
36
.sp
37
37
The libtest harness may be disabled by setting \fB harness = false \fR in the target
38
38
manifest settings, in which case your code will need to provide its own \fB main \fR
You can’t perform that action at this time.
0 commit comments