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
var testData = {
"undefined": this.anUndefinedVariable,
"null": null,
"true value": true,
"false value": false,
"true string": "true",
"false string": "false",
"-2": -2,
"-1": -1,
"0": 0,
"1": 1,
"2": 2,
"-2 string": "-2",
"-1 string": "-1",
"0 string": "0",
"1 string": "1",
"2 string": "2",
"empty string": "",
"non-empty string": "test string",
"function": function() {},
"object": {},
"array": [],
"empty string as object": new String(""),
"non-empty string as object": new String("some string"),
"0 as number object": new Number(0),
"1 as number object": new Number(1),
"2 as number object": new Number(2),
"-1 as number object": new Number(-1),
"true as boolean object": new Boolean(true),
"false as boolean object": new Boolean(false)
}
Ready to run.
Test | Ops/sec | |
---|---|---|
implicit |
| ready |
explicit |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.