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
Immediately-Invoked Function Expression (IIFE)
http://benalman.com/news/2010/11/immediately-invoked-function-expression/
Note that it´s only with Crockford and dogballs you can define what should be returned from the IIFE.
Tilde is a different beast all in it´s own.
It´s recommended to go with either Crockford or dogballs as they are the most portable and conventional.
var foo = 'foo';Ready to run.
| Test | Ops/sec | |
|---|---|---|
| Crockford | | ready |
| dogballs | | ready |
| void | | ready |
| new | | ready |
| bang | | ready |
| tilde | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.