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
Two different methods of calculating overlap between two items
const s = [
{
c: {x:1183.5,y:438.6875,width:149.890625,height:36,top:438.6875,right:1333.390625,bottom:474.6875,left:1183.5},
p: {x:52.5,y:438.6875,width:1156,height:36,top:438.6875,right:1208.5,bottom:474.6875,left:52.5}
},
{
c: {x:-40.671875,y:438.6875,width:177.65625,height:36,top:438.6875,right:136.984375,bottom:474.6875,left:-40.671875},
p: {x:52.5,y:438.6875,width:1156,height:36,top:438.6875,right:1208.5,bottom:474.6875,left:52.5}
},
{
c: {x:627.546875,y:438.6875,width:162.59375,height:36,top:438.6875,right:790.140625,bottom:474.6875,left:627.546875},
p: {x:52.5,y:438.6875,width:1156,height:36,top:438.6875,right:1208.5,bottom:474.6875,left:52.5}
},
{
c: {x:2318.453125,y:438.6875,width:100.03125,height:36,top:438.6875,right:2418.484375,bottom:474.6875,left:2318.453125},
p: {x:52.5,y:438.6875,width:1156,height:36,top:438.6875,right:1208.5,bottom:474.6875,left:52.5}
}
];
Ready to run.
Test | Ops/sec | |
---|---|---|
Conditions |
| ready |
Pure maths |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.