From cd3d83d8a852d98e934ebc13b067e0971e30a995 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Fri, 12 Dec 2025 18:12:06 +0100 Subject: Improve docs, and match API of other parsers --- benchmark/index.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'benchmark') 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(); -- cgit