Skip to content

Commit

Permalink
Cleanup the map benchmark test
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Jan 20, 2025
1 parent 502dceb commit af4aacb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/beacon-node/test/perf/misc/map.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ describe("misc / Map", () => {

bench({
id: "Object access 1 prop",
runsFactor: times,
beforeEach: () => ({a: 1}),
fn: (obj) => {
obj.a;
Expand All @@ -16,6 +17,7 @@ describe("misc / Map", () => {

bench({
id: "Map access 1 prop",
runsFactor: times,
beforeEach: () => new Map([["a", 1]]),
fn: (map) => {
map.get("a");
Expand Down

0 comments on commit af4aacb

Please sign in to comment.