Benign cargo Download

bench1.rs

SHA-256ec0f09b94a01c5962d48d017a0ced8ac76a9187e3447ab6adb161dc5b49b54d5
Malecule∅

Evidence

imports itertools::Itertools lines 3–31
3:8… crate test;
4extern crate itertools;
5
6use test::{black_box};
7use itertools::Stride;
8use itertools::Itertools;
9
10#[cfg(feature = "unstable")]
11use itertools::{ZipTrusted};
12
13use itertools::ZipSlices;
14
15use std::iter::repeat;
16use std::cmp;
17use std::cmp::Ordering;
18
19#[bench]
20fn slice_iter(b: &mut test::Bencher)
21{
22 let xs: Vec<_> = repeat(1i32).take(20).collect();
23 b.iter(|| for elt in xs.iter() {
24 test::black_box(elt);
25 })
⋯6 lines
Contains a 1023 or 1024 iteration-count literal lines 56–63
56:10… fault_zip(b: &mut test::Bencher)
57{
58 let xs = vec![0; 1024];
59 let ys = vec![0; 768];
60 let xs = black_box(xs);
61 let ys = black_box(ys);
62
63 b.iter …
English function-word token "and" lines 185–188
185:9… er(|| {
186 // Must slice to equal lengths, and then bounds checks are eliminated!
187 let len = cmp::min(xs.len(), ys.len());
188 let …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.