1
0
Fork 0
firefox/third_party/rust/sha2/benches/mod.rs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

22 lines
363 B
Rust

#![feature(test)]
extern crate test;
use digest::bench_update;
use sha2::{Sha256, Sha512};
use test::Bencher;
bench_update!(
Sha256::default();
sha256_10 10;
sha256_100 100;
sha256_1000 1000;
sha256_10000 10000;
);
bench_update!(
Sha512::default();
sha512_10 10;
sha512_100 100;
sha512_1000 1000;
sha512_10000 10000;
);