From eee4cb11e2e9bd5c72362bfce2246fd461c3899b Mon Sep 17 00:00:00 2001 From: X Date: Sat, 2 Mar 2024 14:34:04 +0800 Subject: [PATCH] Add `baseline` for benchmark script --- test/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/benchmark.js b/test/benchmark.js index 2f186ea..ff72518 100644 --- a/test/benchmark.js +++ b/test/benchmark.js @@ -8,7 +8,7 @@ const markdownit = MarkdownIt(); const md = await Deno.readFile(new URL("commonmark-spec.md", import.meta.url)); const mdStr = new TextDecoder().decode(md); -Deno.bench("md4w", () => { +Deno.bench("md4w", { baseline: true }, (b) => { mdToHtml(md); });