Skip to content

Commit

Permalink
Fix old perf test usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Feb 12, 2025
1 parent cbb30a2 commit 18bd9bf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/ssz/test/perf/eth2/beaconBlock.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {itBench, setBenchOpts} from "@dapplion/benchmark";
import {ValueWithCachedPermanentRoot, symbolCachedPermanentRoot} from "../../../src/util/merkleize";
import {deneb, ssz} from "../../lodestarTypes";
import {preset} from "../../lodestarTypes/params";
import {BitArray, toHexString} from "../../../src";
import {describe, bench, setBenchOpts} from "@chainsafe/benchmark";
import {ValueWithCachedPermanentRoot, symbolCachedPermanentRoot} from "../../../src/util/merkleize.js";
import {deneb, ssz} from "../../lodestarTypes/index.js";
import {preset} from "../../lodestarTypes/params.js";
import {BitArray, toHexString} from "../../../src/index.js";
const {MAX_ATTESTATIONS, MAX_DEPOSITS, MAX_VOLUNTARY_EXITS, MAX_BLS_TO_EXECUTION_CHANGES} = preset;

describe("Benchmark BeaconBlock.hashTreeRoot()", function () {
Expand Down Expand Up @@ -69,7 +69,7 @@ describe("Benchmark BeaconBlock.hashTreeRoot()", function () {

const root = ssz.deneb.BeaconBlock.hashTreeRoot(block);
console.log("BeaconBlock.hashTreeRoot() root", toHexString(root));
itBench({
bench({
id: `Deneb BeaconBlock.hashTreeRoot(), numTransaction=${numTransaction}`,
beforeEach: () => {
clearCachedRoots(block);
Expand Down

0 comments on commit 18bd9bf

Please sign in to comment.