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
Each of these represents one way of instantiating an IIFE (immediately-invoked function expression, AKA self-invoking function) in JS. (Learn more about IIFEs here.)
» They appear in descending order of popularity.
» The first several use symbolic operators, while the latter several use keywords and statements.
–ck
Ready to run.
Test | Ops/sec | |
---|---|---|
Expressive Create-Instance (()) |
| ready |
Bitwise NOT (~) |
| ready |
Bang/Logical Inversion (!) |
| ready |
Unary Sum (+) |
| ready |
Unary Negation (-) |
| ready |
Forced Instantial Ternary (?:) |
| ready |
Forced Fallback Ternary (?:) |
| ready |
Indirect Clausal Evaluation by Comma (,) |
| ready |
Faux Constructor (new) |
| ready |
Void Operator (void) |
| ready |
Contextual Return Statement (return) |
| ready |
Delete Operator (delete) |
| ready |
Contextual Throw Statement (throw) |
| ready |
While |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.