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 src="https://documentcloud.github.com/underscore/underscore.js"></script>
var $ = window.jQuery,
_ = window._,
array = [1, 2, 3],
func = function(){},
string = "string",
number = 101,
date = new Date,
regexp = /regexp/i;
function isFunction(obj) {
return typeof obj === 'function';
}
function isString(obj) {
return typeof obj === 'string';
}
function isNumber(obj) {
return typeof obj === 'number';
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Current Implementation |
| ready |
typeof |
| ready |
inline typeof 2 |
| ready |
inline typeof 3 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.