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
var basictree = {
id: 0,
countMe: true,
children: [
{
id: 1,
countMe: false,
children: [
{
id: 2,
countMe: true,
children: [
{
id: 3,
countMe: false,
children: [
{
id: 4,
countMe: true,
children: [
{
id: 5,
countMe: false,
children: [
tree = {
id: 6,
countMe: true,
children: [
{
id: 7,
countMe: false,
children: []
}
]
}
]
}
]
}
]
}
]
},
{
id: 8,
countMe: true,
children: [
{
id: 9,
countMe: false,
children: [
{
id: 10,
countMe: true,
children: [
{
id: 11,
countMe: false,
children: [
tree = {
id: 12,
countMe: true,
children: [
{
id: 13,
countMe: false,
children: [
{
id: 14,
countMe: true,
children: []
},
{
id: 15,
countMe: false,
children: []
},
{
id: 16,
countMe: true,
children: []
},
{
id: 17,
countMe: false,
children: []
},
{
id: 18,
countMe: true,
children: []
},
{
id: 19,
countMe: false,
children: []
},
{
id: 20,
countMe: true,
children: []
},
{
id: 21,
countMe: false,
children: []
},
{
id: 22,
countMe: true,
children: []
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
};
var tree = {
id : 999999,
countMe: true,
children : []
}
for (var i = 0; i < 1000; i++) {
tree.children.push(basictree);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
reduce |
| ready |
for |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.