diff --git a/jasmine.json b/jasmine.json deleted file mode 100644 index c2728eef..00000000 --- a/jasmine.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "spec_dir": "test", - "spec_files": [ - "**/*-spec.js" - ], - "helpers": [ - "helpers/helpers.js" - ], - "jsLoader": "import", - "stopSpecOnExpectationFailure": false, - "random": true -} diff --git a/test/bench.js b/test/bench.js index d7455215..a368c703 100644 --- a/test/bench.js +++ b/test/bench.js @@ -118,6 +118,13 @@ export async function bench(tests, specs) { const percent = ((stats[name].correct / specs.length) * 100).toFixed(2); console.log(`${name} completed in ${ms}ms and passed ${percent}%`); } + + const percentSlower = (( + prettyElapsedTime(stats['esm marked'].elapsed) + / prettyElapsedTime(stats.commonmark.elapsed) + ) - 1) * 100; + + console.log(`${Math.round(percentSlower)}% slower than commonmark`); } /**