Skip to content

Commit

Permalink
fix: set benchmark option for as-sha256 perf test
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Mar 1, 2024
1 parent dc3ddcd commit 07ef263
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/as-sha256/test/perf/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {itBench} from "@dapplion/benchmark";
import {itBench, setBenchOpts} from "@dapplion/benchmark";
import * as sha256 from "../../src";

// Aug 10 2021
Expand All @@ -7,6 +7,10 @@ import * as sha256 from "../../src";
// ✓ digest64 50023 times 18.21352 ops/s 54.90425 ms/op - 1093 runs 60.0 s
// ✓ digest 50023 times 10.60461 ops/s 94.29865 ms/op - 637 runs 60.1 s
describe("digestTwoHashObjects vs digest64 vs digest", () => {
setBenchOpts({
minMs: 60_000,
});

const input = Buffer.from("gajindergajindergajindergajindergajindergajindergajindergajinder", "utf8");
const input1 = "gajindergajindergajindergajinder";
const input2 = "gajindergajindergajindergajinder";
Expand Down

0 comments on commit 07ef263

Please sign in to comment.