File: mod.rs

package info (click to toggle)
rust-sha2 0.10.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 256 kB
  • sloc: makefile: 2
file content (22 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (51)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#![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;
);