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
Creating an array filled with zeros. Which is the fastest method? These methods are useful for arrays filled with a single element, except for the typed array conversion which works only with zeros. Only the first two methods are useful with incremental values or callbacks.
Ready to run.
Test | Ops/sec | |
---|---|---|
Array push |
| ready |
Array assign |
| ready |
Typed array conversion |
| ready |
CoffeeScript |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.