Skip to content

Commit

Permalink
chore: clean up files (#3529)
Browse files Browse the repository at this point in the history
* chore: show percentage slower in bench

* chore: remove jasmine.json
  • Loading branch information
UziTech authored Nov 10, 2024
1 parent bd22323 commit cf4e518
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
12 changes: 0 additions & 12 deletions jasmine.json

This file was deleted.

7 changes: 7 additions & 0 deletions test/bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}

/**
Expand Down

0 comments on commit cf4e518

Please sign in to comment.