diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-12 18:12:06 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-13 21:21:32 +0100 |
| commit | cd3d83d8a852d98e934ebc13b067e0971e30a995 (patch) | |
| tree | af5b73b35c7d5c1da63ad59353ff29c0786ec762 /benchmark | |
| parent | 80aefd27ffc19a948c74f2418a2a5bf5f95a6868 (diff) | |
Improve docs, and match API of other parsers
Diffstat (limited to 'benchmark')
| -rw-r--r-- | benchmark/index.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/benchmark/index.js b/benchmark/index.js index e2bae6d..f2e280c 100644 --- a/benchmark/index.js +++ b/benchmark/index.js @@ -8,12 +8,13 @@ const hugeSource = await readFile("test/huge.wmap", "utf-8"); const bench = new Bench({ name: "Parsing Benchmark", time: 1000 }); -bench.add("Example map", () => { - parse(exampleSource); -}) -.add("Huge map", () => { - parse(hugeSource); -}); +bench + .add("Example map", () => { + parse(exampleSource); + }) + .add("Huge map", () => { + parse(hugeSource); + }); await bench.run(); |