julid-rs/benches/simple.rs

17 lines
260 B
Rust
Raw Normal View History

2023-10-07 20:51:46 +00:00
use divan::black_box;
use julid::Julid;
fn main() {
divan::main();
}
#[divan::bench]
fn jbench() {
for _ in 0..1_000_000 {
let x = black_box(Julid::new());
if x < 1u128.into() {
println!("that's weird");
}
}
}