mirror of
https://github.com/uuid-rs/uuid.git
synced 2025-10-02 07:20:40 +00:00
12 lines
191 B
Rust
12 lines
191 B
Rust
#![cfg(all(feature = "v7", feature = "std"))]
|
|
#![feature(test)]
|
|
extern crate test;
|
|
|
|
use test::Bencher;
|
|
use uuid::Uuid;
|
|
|
|
#[bench]
|
|
fn now_v7(b: &mut Bencher) {
|
|
b.iter(|| Uuid::now_v7());
|
|
}
|