Skip to content

Commit 18bd9bf

Browse files
committed
Fix old perf test usage
1 parent cbb30a2 commit 18bd9bf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/ssz/test/perf/eth2/beaconBlock.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {itBench, setBenchOpts} from "@dapplion/benchmark";
2-
import {ValueWithCachedPermanentRoot, symbolCachedPermanentRoot} from "../../../src/util/merkleize";
3-
import {deneb, ssz} from "../../lodestarTypes";
4-
import {preset} from "../../lodestarTypes/params";
5-
import {BitArray, toHexString} from "../../../src";
1+
import {describe, bench, setBenchOpts} from "@chainsafe/benchmark";
2+
import {ValueWithCachedPermanentRoot, symbolCachedPermanentRoot} from "../../../src/util/merkleize.js";
3+
import {deneb, ssz} from "../../lodestarTypes/index.js";
4+
import {preset} from "../../lodestarTypes/params.js";
5+
import {BitArray, toHexString} from "../../../src/index.js";
66
const {MAX_ATTESTATIONS, MAX_DEPOSITS, MAX_VOLUNTARY_EXITS, MAX_BLS_TO_EXECUTION_CHANGES} = preset;
77

88
describe("Benchmark BeaconBlock.hashTreeRoot()", function () {
@@ -69,7 +69,7 @@ describe("Benchmark BeaconBlock.hashTreeRoot()", function () {
6969

7070
const root = ssz.deneb.BeaconBlock.hashTreeRoot(block);
7171
console.log("BeaconBlock.hashTreeRoot() root", toHexString(root));
72-
itBench({
72+
bench({
7373
id: `Deneb BeaconBlock.hashTreeRoot(), numTransaction=${numTransaction}`,
7474
beforeEach: () => {
7575
clearCachedRoots(block);

0 commit comments

Comments
 (0)