Skip to content

Commit cf4e518

Browse files
authored
chore: clean up files (#3529)
* chore: show percentage slower in bench * chore: remove jasmine.json
1 parent bd22323 commit cf4e518

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

jasmine.json

-12
This file was deleted.

test/bench.js

+7
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ export async function bench(tests, specs) {
118118
const percent = ((stats[name].correct / specs.length) * 100).toFixed(2);
119119
console.log(`${name} completed in ${ms}ms and passed ${percent}%`);
120120
}
121+
122+
const percentSlower = ((
123+
prettyElapsedTime(stats['esm marked'].elapsed)
124+
/ prettyElapsedTime(stats.commonmark.elapsed)
125+
) - 1) * 100;
126+
127+
console.log(`${Math.round(percentSlower)}% slower than commonmark`);
121128
}
122129

123130
/**

0 commit comments

Comments
 (0)