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
dummy = {}
function setDummy (i) {
dummy[i] = i + i + i
}
function readDummy (i) {
return dummy[i]
}
function setLS (i) {
localStorage.setItem(i, i + i + i)
}
function readLS (i) {
return localStorage.getItem(i)
}
function makeSet (count) {
var s = []
for (var i = 0; i < count; i++) {
s.push("" + i + i)
}
return s
}
set1 = makeSet(10)
set2 = makeSet(100)
dummy = {}
function clearLocalStorage (s) {
for (var i = 0; i < s.length; i++) {
localStorage.removeItem(s[i])
}
}
clearLocalStorage(set1)
clearLocalStorage(set2)
Ready to run.
| Test | Ops/sec | |
|---|---|---|
| dummy1 | | ready |
| ls1 | | ready |
| dummy2 | | ready |
| ls2 | | ready |
| dummy3-read-bias | | ready |
| ls3-read-bias | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.