From c458abdfd85427f7505baaae867b2be03f269fd7 Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Thu, 25 Apr 2019 13:34:33 -0500 Subject: [PATCH] add comments --- test/bench.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/bench.js b/test/bench.js index 2f59f7e161..b72c27577c 100644 --- a/test/bench.js +++ b/test/bench.js @@ -4,6 +4,9 @@ const {loadFiles} = require('./helpers/load.js'); let marked = require('../'); +/** + * Load specs + */ function load() { const dir = path.resolve(__dirname, './specs/commonmark'); const sections = loadFiles(dir); @@ -16,6 +19,9 @@ function load() { return specs; } +/** + * Run all benchmarks + */ function runBench(options) { options = options || {}; const specs = load();