summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/benches
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /vendor/rustix/benches
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/rustix/benches')
-rw-r--r--vendor/rustix/benches/mod.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/rustix/benches/mod.rs b/vendor/rustix/benches/mod.rs
index 3097324bc..06831362f 100644
--- a/vendor/rustix/benches/mod.rs
+++ b/vendor/rustix/benches/mod.rs
@@ -1,4 +1,13 @@
+/// Benchmarks for rustix.
+///
+/// To enable these benchmarks, add `--cfg=criterion` to RUSTFLAGS and enable
+/// the "fs", "time", and "process" cargo features.
+
#[cfg(any(
+ not(criterion),
+ not(feature = "fs"),
+ not(feature = "process"),
+ not(feature = "time"),
windows,
target_os = "emscripten",
target_os = "redox",
@@ -9,6 +18,10 @@ fn main() {
}
#[cfg(not(any(
+ not(criterion),
+ not(feature = "fs"),
+ not(feature = "process"),
+ not(feature = "time"),
windows,
target_os = "emscripten",
target_os = "redox",
@@ -17,6 +30,10 @@ fn main() {
use criterion::{criterion_group, criterion_main};
#[cfg(not(any(
+ not(criterion),
+ not(feature = "fs"),
+ not(feature = "process"),
+ not(feature = "time"),
windows,
target_os = "emscripten",
target_os = "redox",
@@ -132,6 +149,10 @@ mod suite {
}
#[cfg(not(any(
+ not(criterion),
+ not(feature = "fs"),
+ not(feature = "process"),
+ not(feature = "time"),
windows,
target_os = "emscripten",
target_os = "redox",
@@ -149,6 +170,10 @@ criterion_group!(
suite::simple_getpid_libc
);
#[cfg(not(any(
+ not(criterion),
+ not(feature = "fs"),
+ not(feature = "process"),
+ not(feature = "time"),
windows,
target_os = "emscripten",
target_os = "redox",