Skip to content

Commit

Permalink
added structuredclone
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Mar 8, 2024
1 parent 590831d commit 60507bf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion benchmark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ var run = bench([
cloneCirclesProto(obj)
}
setImmediate(cb)
}
},
function benchStructuredClose (cb) {
for (var i = 0; i < max; i++) {
structuredClone(obj)
}
setImmediate(cb)
},
], 100)

run(run)

0 comments on commit 60507bf

Please sign in to comment.