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 a = Array({
test: "fdslfsfdfsd",
resize: 2
}, function() {
return Math.random() * 3465;
}, function(v) {
return "sdfksdjf" + v;
}, function() {
return document.title + "<-";
}, "fdslfsfdfsd", "2.43.2", "This is the desc. of the object. ... Some text ... .", "abcde", 3, (Math.random() * 434) | 0, String.fromCharCode((Math.random() * 255) | 0, (Math.random() * 255) | 0), function() {
var s = a[0].test;
var s = a[1]();
var s = a[2](a[10]);
var s = a[3]();
var s = a[4];
var s = a[5];
var s = a[6];
a[6] = s + "";
var s = a[7];
var s = a[8];
var s = a[9];
a[9] = (Math.random() * 434) | 0;
var s = a[10];
a[10] = String.fromCharCode((Math.random() * 255) | 0, (Math.random() * 255) | 0);
}, function() {
var t = a;
var s = t[0].test;
var s = t[1]();
var s = t[2](t[10]);
var s = t[3]();
var s = t[4];
var s = t[5];
var s = t[6];
t[6] = s + "";
var s = t[7];
var s = t[8];
var s = t[9];
t[9] = (Math.random() * 434) | 0;
var s = t[10];
t[10] = String.fromCharCode((Math.random() * 255) | 0, (Math.random() * 255) | 0);
}, function() {
var s = this[0].test;
var s = this[1]();
var s = this[2](this[10]);
var s = this[3]();
var s = this[4];
var s = this[5];
var s = this[6];
this[6] = s + "";
var s = this[7];
var s = this[8];
var s = this[9];
this[9] = (Math.random() * 434) | 0;
var s = this[10];
this[10] = String.fromCharCode((Math.random() * 255) | 0, (Math.random() * 255) | 0);
});
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Do not cache |
| ready |
cache with the global var with a local var named t |
| ready |
use this ( in some cases, be carefull with this ) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.