mirror of
https://github.com/uuid-rs/uuid.git
synced 2025-10-02 07:20:40 +00:00
12 lines
169 B
Rust
12 lines
169 B
Rust
#![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());
|
|
}
|