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() {
var arr_proto = Array.prototype,
result;
window.arr_unshift = function() {
arguments.length++;
arr_proto.unshift.call(arguments,'new arg');
return arguments;
}
window.arr_slice_unshift = function() {
var args = arr_proto.slice.call(arguments,0);
args.unshift('new arg');
return args;
}
window.slide = function() {
var i = arguments.length;
arguments.length++;
while (i) {
arguments[i] = arguments[--i];
}
return arguments;
}
})();
</script>
result = null;
Ready to run.
Test | Ops/sec | |
---|---|---|
arr_unshift |
| ready |
arr_slice_unshift |
| ready |
slide |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.