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
<script>
function unescape(text){
var regexp = /(&|<|>|"|')/g;
if( regexp.test(text) ){
var entities = {
"&": "&",
"<": "<",
">": ">",
""": "\"",
"'": "'"
};
text = text.replace(regexp, function(ent){
return entities[ent];
});
}
return text;
}
function unescapeReplace(text){
return text
.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>')
.replace(/"/g, '"')
.replace(/'/g, "'");
}
var text = `
### Test about parsing < >
This is a test about parsing text between "chevrons" < > as HTML tags:
### Inline code
First test is about some <tags> inside backticks, or _inine code_;
First test is about some <tags> inside backticks, or _inine code_;
### Inside code block
Second test is about what seems like SGML tags inside a code block:
<html></html>
vnoremap <silent> "$ :w !nc -q0 localhost 5900<CR>
With the as _html entities_:
vnoremap <silent> "$ :w !nc -q0 localhost 5900<CR>
Using ***bootmark*** I can't see the
`;
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
function |
| ready |
replace |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.