inline test
This commit is contained in:
parent
da69ea51fe
commit
ae76a509dc
@ -37,13 +37,6 @@ fn u256_add(b: &mut Bencher) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
#[bench]
|
|
||||||
fn u256_uber_add(b: &mut Bencher) {
|
|
||||||
b.iter(|| {
|
|
||||||
let n = black_box(10000);
|
|
||||||
(0..n).fold(U256::from(1234599u64), |old, new| { old.uber_add(U256::from(new)).0 })
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
#[bench]
|
#[bench]
|
||||||
fn u256_sub(b: &mut Bencher) {
|
fn u256_sub(b: &mut Bencher) {
|
||||||
|
Loading…
Reference in New Issue
Block a user