Skip to content

Commit

Permalink
Update sha256_hash.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jack60612 committed Jul 10, 2024
1 parent a0c358a commit 3deac69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions benches/sha256_hash.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use criterion::{Criterion, criterion_group, criterion_main};
use criterion::{criterion_group, criterion_main, Criterion};

use clvmr::sha2::Sha256;

Expand All @@ -23,7 +23,8 @@ fn sha256_hash_benchmark(c: &mut Criterion) {
let mut group = c.benchmark_group("sha256_hash");

group.bench_function("hash_benchmark", |b| {
b.iter(|| { // this figures out how many iterations to run.
b.iter(|| {
// this figures out how many iterations to run.
for val in 0..MAX_VAL {
for len in BYTE_LENGTHS {
let bytes = gen_bytes(&val, &len);
Expand Down

0 comments on commit 3deac69

Please sign in to comment.