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 c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.beginPath();
ctx.moveTo(0, 0);
for (var i = 0; i < 500; i++) {
var p1 = i*5;
var p2 = Math.sin(i/10)*100 + 100;
ctx.lineTo(p1, p2);
}
ctx.lineCap = "round";
ctx.lineJoin = "round";
ctx.lineWidth = 4;
ctx.strokeSytle = "rgb(0, 200, 0)";
ctx.stroke();
Ready to run.
Test | Ops/sec | |
---|---|---|
render |
| ready |
pre-rendered |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.