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

Checking performance of Array.reverse() vs custom loops.

Also see http://jsperf.com/forloop-vs-reverse-while-loop-and-array-reverse/9.

```
<script>
var array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
var length = array.length;
</script>
```

Ready to run.

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

Array.reverse() |
| ready |

while push then slice |
| ready |

while forward |
| ready |

for push then slice |
| ready |

for push |
| ready |

for swap |
| ready |

for swap half |
| ready |

XOR swap |
| ready |

XOR swap half |
| ready |

destructuring |
| ready |

destructuring half |
| ready |

No array methods |
| ready |

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

- Revision 1: published by Matt McDonald on
- Revision 2: published on
- Revision 3: published by Matt McDonald on
- Revision 4: published by george on
- Revision 5: published by XP1 on
- Revision 6: published by tav on
- Revision 8: published by Miller Medeiros on
- Revision 9: published by Boris on
- Revision 12: published by Sugendran on
- Revision 16: published by nzn on
- Revision 17: published on
- Revision 18: published on
- Revision 19: published by Brittany Storoz on
- Revision 20: published by Bergi on
- Revision 24: published on
- Revision 25: published on
- Revision 27: published by Simon Karman on
- Revision 28: published on
- Revision 29: published on
- Revision 31: published on
- Revision 32: published by Konstantin Ivanov on
- Revision 33: published by Daniel on
- Revision 34: published by Gabriel Reitz Giannattasio on
- Revision 36: published by Dillon on
- Revision 37: published on
- Revision 39: published by Brian on
- Revision 42: published by Rob on
- Revision 43: published by Hugo Villeneuve on
- Revision 44: published on
- Revision 47: published on
- Revision 48: published by xorgy on
- Revision 49: published on
- Revision 50: published on
- Revision 51: published by Quinn on
- Revision 52: published on
- Revision 53: published by CoDEmanX on
- Revision 54: published on
- Revision 55: published by Max on
- Revision 56: published by C on
- Revision 57: published by jeko on
- Revision 58: published by SirShanus on
- Revision 59: published by SirShanus on
- Revision 60: published on
- Revision 61: published on
- Revision 62: published on
- Revision 63: published on
- Revision 64: published on
- Revision 65: published on
- Revision 66: published on