From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- vendor/rustix/benches/mod.rs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'vendor/rustix/benches') 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", -- cgit v1.2.3