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
//from 'is-lib' https://github.com/lsauer/is-library
str2buffer = function(s) {
var bu = new ArrayBuffer(s.length),
aUint8 = new Uint8Array(bu);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
regex based |
| ready |
splitting the string |
| ready |
using indexOf |
| ready |
searching for a single character |
| ready |
element mapping and filtering; |
| ready |
'deleting' the character out of the string |
| ready |
based on typed arrays |
| ready |
based on untyped Arrays |
| ready |
using reduce. |
| ready |
dictionary character histogram |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.