Skip to content

Commit

Permalink
bench: fix array creation in benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
BridgeAR authored Mar 13, 2024
1 parent 9244319 commit 46f2449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const suite = new Benchmark.Suite()
const stringify = require('.').configure({ deterministic: true })

// eslint-disable-next-line
const array = Array({ length: 10 }, (_, i) => i)
const array = Array.from({ length: 10 }, (_, i) => i)
const obj = { array }
const circ = JSON.parse(JSON.stringify(obj))
circ.o = { obj: circ, array }
Expand Down

0 comments on commit 46f2449

Please sign in to comment.