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
addCommas
is a simple script to add commas at every 3 digits from the right.
'Mine' was originally written by me in 2008. It only supports numbers (no strings) up to five digits (not including scale); six digit numbers will not have commas. See revision 2 for my updated solution that supports strings and numbers, including numbers in scientific notation.
'Theirs' comes from mredkj.com, variations of which I have seen all over.
Ready to run.
Test | Ops/sec | |
---|---|---|
Mine |
| ready |
Theirs |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.