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 src="http://paperjs.org/assets/js/paper.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.4/raphael-min.js"></script>
<canvas id="context" width="100" height="100"></canvas>
<canvas id="paper" width="100" height="100"></canvas>
<div id="raphael"></div>
<svg width="100" height="100">
<rect id="svgRect" x="0" y="0" width="50" height="50" stroke="#000"/>
</svg>
<script>
var contextCanvas;
var ctx;
var svgRect;
var paperCanvas;
var paperRect;
var raphaelInstance;
var rephaelRect;
var i = 0;
window.onload = function() {
contextCanvas = document.getElementById("context");
ctx = contextCanvas.getContext("2d");
svgRect = document.getElementById("svgRect");
paperCanvas = document.getElementById("paper");
paper.setup(paperCanvas);
paperRect = new paper.Shape.Rectangle(0, 0, 50, 50);
paper.view.draw();
raphaelInstance = Raphael('raphael', 100, 100);
rephaelRect = raphaelInstance.rect(0, 0, 50, 50);
};
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Vanilla Canvas |
| ready |
PaperJs |
| ready |
RaphaëlJs |
| ready |
Vanilla SVG |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.