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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>
Scroll Canvas Demo
</title>
</head>
<body>
<canvas id="scroll" width="400" height="600">
hello
</canvas>
</body>
</html>
var myImage0 = new Image();
myImage0.src = "http://media.dcentertainment.com/sites/default/files/comic-covers/10421_400x600.jpg"
var myImage1 = new Image();
myImage1.src = "http://4.bp.blogspot.com/_sXsgbp8X_zA/TKPoDFn6rKI/AAAAAAAAAEo/QKYmgxFhM6c/s1600/15554_400x600.jpg"
var myImage2 = new Image();
myImage2.src = "http://www.math.uwaterloo.ca/~hdesterc/websiteW/personal/pictures/argentina2003/200311-set8/images/200311-set8_4_400x600.jpg"
var myImage3 = new Image();
myImage3.src = "http://media.dcentertainment.com/sites/default/files/book-covers/1788_400x600.jpg"
var canvas = document.getElementById('scroll');
var ctx = canvas.getContext('2d');
var deltaX = Math.random() * (2000) - 400
Ready to run.
Test | Ops/sec | |
---|---|---|
Checking if it is visible |
| ready |
Don't check, draw everything |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.