Skip to content

Commit

Permalink
skip some benches
Browse files Browse the repository at this point in the history
  • Loading branch information
loloicci committed Apr 10, 2024
1 parent 37b7cf2 commit 9f4e3f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/crypto/benches/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ fn bench_crypto(c: &mut Criterion) {
// and there are 8 bytes header (message length) and 1 byte tail
// (EOF).
let len = i * 64 - 9;
if i > 64 && i % 64 != 0 {
continue
};
group.bench_function(format!("sha1_calculate_{}byte", len), |b| {
let mut message: Vec<u8> = vec![];
message.resize(len, 42);
Expand Down

0 comments on commit 9f4e3f4

Please sign in to comment.