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
https://twitter.com/nicolasfor/status/543352574095921152 @nicolasfor
function f1(a, b){
return a + b;
}
function f2(a, b){
/* Aliquam malesuada tortor justo, sed euismod diam varius a.*/
return a + b;
}
function f3(a, b){
/* Aliquam malesuada tortor justo, sed euismod diam varius a. Aliquam non risus orci. Duis et varius orci. Phasellus sit amet enim sed erat laoreet dapibus. Etiam ullamcorper nisi maximus elit suscipit, a aliquam velit vehicula. Suspendisse feugiat nibh quis elit aliquet eleifend. In hac habitasse platea dictumst. Maecenas risus sapien, venenatis sed lectus sit amet, rutrum consequat orci. Maecenas egestas enim in velit consequat, accumsan condimentum tortor iaculis. Praesent quis rhoncus eros. Ut ornare malesuada porta. Suspendisse volutpat semper ex eu varius. */
return a + b;
}
Ready to run.
Test | Ops/sec | |
---|---|---|
with long comments |
| ready |
with short comments |
| ready |
without comments |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.