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 sub(str, data) {
return str.replace(/\{([^\}]+?)\}/g, function(match, key) {
return (key in data) ? (typeof data[key] === 'function' ? data[key](key, str) : data[key]) : match;
});
}
var obj = {
url: 'http://www.yahoo.com',
subject: 'The subject, what else',
content: 'The content, should takes about 100 characters? Not sure, hot this string is representative. OK?',
date: '2011/04/26',
time: '3:30PM'
};
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
substitue regex |
| ready |
join |
| ready |
concatnate |
| ready |
smart push |
| ready |
push join |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.