diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-12-04 13:07:14 +0000 | 
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-01-26 10:26:36 +0000 | 
| commit | b6a384194204f34b70fe738e809848ee274b9681 (patch) | |
| tree | b7df32e997d34fcfea2f5166df846833b9987c2d /library/core/benches/array.rs | |
| parent | c2270becb63d4c52a2740137db2e9b49246f9362 (diff) | |
| download | rust-b6a384194204f34b70fe738e809848ee274b9681.tar.gz rust-b6a384194204f34b70fe738e809848ee274b9681.zip | |
Put all coretests in a separate crate
Diffstat (limited to 'library/core/benches/array.rs')
| -rw-r--r-- | library/core/benches/array.rs | 18 | 
1 files changed, 0 insertions, 18 deletions
| diff --git a/library/core/benches/array.rs b/library/core/benches/array.rs deleted file mode 100644 index 751f3235a5f..00000000000 --- a/library/core/benches/array.rs +++ /dev/null @@ -1,18 +0,0 @@ -use test::{Bencher, black_box}; - -macro_rules! map_array { - ($func_name:ident, $start_item: expr, $map_item: expr, $arr_size: expr) => { - #[bench] - fn $func_name(b: &mut Bencher) { - let arr = [$start_item; $arr_size]; - b.iter(|| black_box(arr).map(|_| black_box($map_item))); - } - }; -} - -map_array!(map_8byte_8byte_8, 0u64, 1u64, 80); -map_array!(map_8byte_8byte_64, 0u64, 1u64, 640); -map_array!(map_8byte_8byte_256, 0u64, 1u64, 2560); - -map_array!(map_8byte_256byte_256, 0u64, [0u64; 4], 2560); -map_array!(map_256byte_8byte_256, [0u64; 4], 0u64, 2560); | 
