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 if the inbuilt .sort() is faster than a our own sort.
const letterList = ['g', 'j', 'b', 'p', 'y', 'i', 'm', 'p', 'v', 'l', 'y', 'a', 'a', 'r', 'q', 'x', 'k', 'z', 'a', 'h', 'e', 'c', 'i', 'w', 't', 's', 'k', 'b', 'u', 'c', 't', 'a', 'h', 'w', 'w', 's', 'z', 'e', 'f', 'r', 'p', 'w', 'c', 'l', 'e', 'z', 'x', 'l', 's', 'v', 's', 'h', 'x', 'k', 'b', 'o', 'a', 'n', 'g', 'h', 'u', 'g', 'r', 'p', 'a', 'w', 's', 'g', 'k', 'i', 'm', 'n', 'z', 'o', 'h', 'm', 'h', 'b', 'g', 'x', 'k', 'h', 'e', 's', 'l', 'v', 't', 'e', 'j', 'q', 's', 'y', 'h', 'g', 'c', 'o', 'f', 't', 'h', 's'];
Ready to run.
Test | Ops/sec | |
---|---|---|
Function sort |
| ready |
Function expanded sort |
| ready |
Inbuilt sort |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.