1 2 3 4 5 6 7 8 9 10
#![feature(test)] extern crate test; use rbatis::object_id::ObjectId; use test::Bencher; #[bench] fn bench_object_id(b: &mut Bencher) { b.iter(|| ObjectId::new().u128()); }