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
This checks different methods for seeing if every character in a given string exists in an allowed list of characters.
const BASE36_ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
const test = "IEKT104IWO40VL13K";Ready to run.
| Test | Ops/sec | |
|---|---|---|
| Iterate over charcters | | ready |
| Use set+array functions | | ready |
| Use set functions | | ready |
| Usa arrays | | ready |
| Use regex | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.