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
let nums, str;
nums = {
"n0" : ['NUMBER','PRECISION'],
"n1": [1],
"n2": [1.43435435],
"n3": [-2.34],
"n4": [1.0000003],
"n5": [9384594375.000012340943],
"n6": [-(0.02**6)],
"n7": [Number.MIN_VALUE],
"n8": [5e-26],
"n9": [0.003440001*0.0000324]
}
const testLoop = (fn) => {
for(let i = 0; i < nums.length; ++i){
str = fn(nums[i])
}
}
Ready to run.
Test | Ops/sec | |
---|---|---|
String literal |
| ready |
String constructor |
| ready |
toString |
| ready |
String Literal simple |
| ready |
Double String Literal |
| ready |
Template literals |
| ready |
toLocaleString() |
| ready |
JSON.stringify() |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.