chore: clean up files (#3529)
Some checks failed
Tests / UnitTests (18) (push) Has been cancelled
Tests / UnitTests (latest) (push) Has been cancelled
Tests / UnitTests (lts/*) (push) Has been cancelled
Tests / OtherTests (push) Has been cancelled
Tests / Release (push) Has been cancelled

* chore: show percentage slower in bench

* chore: remove jasmine.json
This commit is contained in:
Tony Brix 2024-11-09 22:04:55 -07:00 committed by GitHub
parent bd22323c09
commit cf4e518348
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 12 deletions

View File

@ -1,12 +0,0 @@
{
"spec_dir": "test",
"spec_files": [
"**/*-spec.js"
],
"helpers": [
"helpers/helpers.js"
],
"jsLoader": "import",
"stopSpecOnExpectationFailure": false,
"random": true
}

7
test/bench.js vendored
View File

@ -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`);
}
/**