Merge pull request #13 from botika/master

Add unsafe attributes at yarte fixed bench
This commit is contained in:
Kogia-sima 2020-06-17 00:36:42 +09:00 committed by GitHub
commit 880cf9db5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ pub fn big_table(b: &mut criterion::Bencher<'_>, size: &usize) {
}
let t = BigTable { table };
b.iter(|| {
black_box(t.call(&mut [MaybeUninit::uninit(); 109915]).unwrap());
black_box(unsafe { t.call(&mut [MaybeUninit::uninit(); 109915]) }.unwrap());
});
}
@ -47,7 +47,7 @@ pub fn teams(b: &mut criterion::Bencher<'_>) {
],
};
b.iter(|| {
black_box(t.call(&mut [MaybeUninit::uninit(); 239]).unwrap());
black_box(unsafe { t.call(&mut [MaybeUninit::uninit(); 239]) }.unwrap());
});
}