Benign cargo Download

benchmarks.rs

imports base64::Configimports base64::STANDARD
SHA-256dbdb26bea4d0d214e39176fb7ab5af5afb78863fb345d11bf6e743344ffd36d3

Evidence

imports base64::Config lines 3–21
3extern crate base64;
4extern crate rand;
5extern crate test;
6
7use base64::display;
8use base64::{decode, decode_config_buf, decode_config_slice, encode, encode_config_buf,
9 encode_config_slice, write, Config, STANDARD};
10
11use rand::{Rng, FromEntropy};
12use std::io::Write;
13use test::Bencher;
14
15#[bench]
⋯6 lines
Source uses a buffer write call lines 345–353
345:30… write::EncoderWriter::new(&mut buf, config);
346 stream_enc.write_all(&v).unwrap();
347 stream_enc.flush().unwrap();
348 });
⋯5 lines

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.