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
<!-- KineticJS -->
<div id="kinContainer">
</div>
<script src="http://kineticjs.com/experimental/kinetic-v4.5.2-beta.js">
</script>
<!-- EaselJS -->
<canvas id="easCanvas" width="40" height="40">
</canvas>
<script src="http://code.createjs.com/createjs-2013.02.12.min.js">
</script>
<!-- ENCHANTJS -->
<script src=""></script>
// =================== KineticJS
var kinStage = new Kinetic.Stage({
container: 'kinContainer',
width: 40,
height: 40
});
var kinLayer = new Kinetic.Layer();
var kinCircle = new Kinetic.Circle({
x: 20,
y: 20,
radius: 20,
fill: 'green',
listening: false
});
// add the shape to the layer
kinLayer.add(kinCircle);
// add the layer to the stage
kinStage.add(kinLayer);
// =================== EaselJS
var stage = new createjs.Stage('easCanvas');
circle = new createjs.Shape();
circle.graphics.beginFill('green').drawCircle(20, 20, 20);
stage.addChild(circle);
stage.update();
var easStage = stage;
// =================== ENCHANTJS
enchant(); // initialize
var game = new Core(40, 40); // game stage
game.fps = 999;
game.onload = function(){
// Creates Sprite that displays a circle.
var ball = new Sprite(40, 40);
var surface = new Surface(40, 40);
surface.context.beginPath();
surface.context.arc(20, 20, 20, 0, Math.PI*2, true);
surface.context.fill();
ball.image = surface;
game.rootScene.addChild(ball);
}
game.start();
document.getElementById('kinContainer').innerHTML = '';
Ready to run.
Test | Ops/sec | |
---|---|---|
KineticJS Render Circle |
| ready |
EaselJS Render Circle |
| ready |
Enchant |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.