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
Comparison of true distance (Pythagoras) limit check between points vs just checking distance of X and Y separately.
<script>
var x1 = 4;
var x2 = 200;
var y1 = 5;
var y2 = 102;
var limit = 195;
var limitSquere = limit * limit ;
var limit2 = 10;
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Pythagoras |
| ready |
Delta X & Delta Y |
| ready |
Delta || |
| ready |
Single delta |
| ready |
Pythagoras 2 |
| ready |
Single delta 2 |
| ready |
Delta || 2 |
| ready |
Pythagoras - no pow |
| ready |
Pythagoras - no pow and sqrt |
| ready |
Pythagoras - no pow and sqrt alt |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.