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
<script>
function piOverloadA(cap)
{
return 4/function y(x){return x<cap?x*x/y(x+1)+2*x-1:1}(1);
}
function piOverloadB(cap, branch)
{
return 'blah';
}
function piBranch(cap, branch)
{
if(branch)
{
return 'blah';
}
else
{
return 4/function y(x){return x<cap?x*x/y(x+1)+2*x-1:1}(1);
}
}
function piControlA(cap)
{
return 'blah'
}
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Overload |
| ready |
Branch |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.