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

```
function getMinTernary(a, b) {
return (a < b) ? a : b;
}
function getMinMath(a, b) {
return Math.min(a, b);
}
function getMinIf(a, b) {
if (a < b) return a
return b
}
```

Ready to run.

Test | Ops/sec | |
---|---|---|

ternary |
| ready |

Math.min |
| ready |

if condition |
| ready |

You can edit these tests or add more tests to this page by appending /edit to the URL.

- Revision 1: published on
- Revision 2: published on
- Revision 4: published on
- Revision 5: published on
- Revision 6: published by ivertex on
- Revision 7: published by Lebolo on
- Revision 8: published on
- Revision 9: published on
- Revision 11: published by Hendry on
- Revision 12: published on
- Revision 13: published on
- Revision 14: published by Niels LyngsÃ¸ on
- Revision 15: published on