diff options
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(); |