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`):
3030
3131Benchmarks are built with the ` --test ` option to ` rustc ` which creates a
3232special 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.
3636
3737The libtest harness may be disabled by setting ` harness = false ` in the target
3838manifest 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
2525
2626 Benchmarks are built with the --test option to rustc which creates a
2727 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.
3131
3232 The libtest harness may be disabled by setting harness = false in the
3333 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`):
3030
3131Benchmarks are built with the ` --test ` option to ` rustc ` which creates a
3232special 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.
3636
3737The libtest harness may be disabled by setting ` harness = false ` in the target
3838manifest 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
3030.sp
3131Benchmarks are built with the \fB \-\- test \fR option to \fB rustc \fR which creates a
3232special 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.
3636.sp
3737The libtest harness may be disabled by setting \fB harness = false \fR in the target
3838manifest 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