jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
const html = '<p><img src="hi" /><script /><img onload="c" /></p>'
const onlyAllowedTagsRegexString = /<(?!\/?(p|i|em|strong|a|li|ul|ol)(?=>|\s.*>))\/?.*?>/;
const onlyAllowedTagsRegex = new RegExp(onlyAllowedTagsRegexString);
const noEventRegexString = /(<.+?)(?<=\s)on[a-z]+\s*=\s*(?:([\'"])(?!\2).+?\2|(?:\S+?\(.*?\)(?=[\s>])))(.*?>)/;
const noEventRegex = new RegExp(noEventRegexString);
Ready to run.
Test | Ops/sec | |
---|---|---|
tags |
| ready |
attributes |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.