Skip to content

Commit

Permalink
Update benchmark iterations (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiazya authored Mar 27, 2024
1 parent 4fcf2b2 commit cb649b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/strong-colts-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"web-csv-toolbox": patch
---

Update benchmark iterations
4 changes: 3 additions & 1 deletion benchmark/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ await loadWASM();
let binaryCSV: Uint8Array = await getAsBinary()
let stringCSV: string = await getAsString();

const bench = withCodSpeed(new Bench())
const bench = withCodSpeed(new Bench({
iterations: 50,
}))
.add('parseString.toArraySync(large-dataset)', () => {
parseString.toArraySync(stringCSV);
})
Expand Down

0 comments on commit cb649b3

Please sign in to comment.