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>
var num = (1024 * 1024 * 1024 * 1024);
var str = "";
var array = [0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0];
var toString = function (n, radix) {
var k = -1;
while (n > 0) {
var q = Math.floor(n / radix);
var r = n - radix * q;
array[++k] = r < 10 ? r + 48 : r - 10 + 97;
n = q;
}
return String.fromCharCode(array);
};
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
String literal |
| ready |
custom |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.