1 2 3 4 5 6 7 8 9 10 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()); }