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
var rawData = ["yeah", "this is", "a", "wonderful", "blue", "world", "But", "its", "poisoned", "with", "hate", "and", "apathy" ];
var sortedStrings = [];
for (i = 0; i < 1000; i++) {
sortedStrings.push(rawData[Math.random()*(rawData.length-1) | 0]);
}
sortedStrings.sort();
unSortedStrings = [];
Ready to run.
Test | Ops/sec | |
---|---|---|
localeCompare |
| ready |
Custom |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.