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
const randomString = () => Math.random().toString(36).slice(2, 7)
const getAllBuckets = () => {
return new Array(2e6).fill(1).map((b) => randomString())
}
const allBucket = getAllBuckets()
const excludedBucket = allBucket.slice(0, 200)
Ready to run.
Test | Ops/sec | |
---|---|---|
[big] loop thru all |
| ready |
[big] loop through excluded |
| ready |
[small] loop thru all |
| ready |
[small] loop through excluded |
| ready |
filter method small loop |
| ready |
filter method big loop |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.