add comments

This commit is contained in:
Tony Brix 2019-04-25 13:34:33 -05:00
parent 2f8fb03df5
commit c458abdfd8

6
test/bench.js vendored
View File

@ -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();