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>
_typeof = (function() {
var list = {
'[object Null]': 'null',
'[object Undefined]': 'undefined',
'[object Object]': 'object',
'[object Function]': 'function',
'[object Array]': 'array',
'[object Number]': 'number',
'[object String]': 'string',
'[object Boolean]': 'boolean',
'[object Symbol]': 'symbol'
};
return function ( type ) {
return list[ Object.prototype.toString.call( type ) ];
};
})();
</script>
var n=null;
var o={};
Ready to run.
Test | Ops/sec | |
---|---|---|
typeof+null |
| ready |
real typeof |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.