Skip to content

Commit

Permalink
chore(jmh): Update with buffer instead of bytes :P
Browse files Browse the repository at this point in the history
  • Loading branch information
guicamest committed Nov 27, 2023
1 parent 3cf21b5 commit 5c32a45
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ public void digestBlake(Blackhole bh) {

@Benchmark
public void digestMD5_inc(Blackhole bh) throws IOException {
forEachBufferIn(bytes, (buffer, len) -> digestInstance.update(bytes, 0, len));
forEachBufferIn(bytes, (buffer, len) -> digestInstance.update(buffer, 0, len));
bh.consume(digestInstance.digest());
}

@Benchmark
public void digestBlake_inc(Blackhole bh) throws IOException {
forEachBufferIn(bytes, (buffer, len) -> blake3.update(bytes, 0, len));
forEachBufferIn(bytes, (buffer, len) -> blake3.update(buffer, 0, len));
bh.consume(blake3.doFinalize(outBytes));
}

Expand Down

0 comments on commit 5c32a45

Please sign in to comment.