diff options
Diffstat (limited to 'third_party/rust/uuid/benches/v4.rs')
-rw-r--r-- | third_party/rust/uuid/benches/v4.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/rust/uuid/benches/v4.rs b/third_party/rust/uuid/benches/v4.rs new file mode 100644 index 0000000000..61c3246b95 --- /dev/null +++ b/third_party/rust/uuid/benches/v4.rs @@ -0,0 +1,11 @@ +#![cfg(feature = "v4")] +#![feature(test)] +extern crate test; + +use test::Bencher; +use uuid::Uuid; + +#[bench] +fn new_v4(b: &mut Bencher) { + b.iter(|| Uuid::new_v4()); +} |