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
<canvas id="canvas" width="765" height="501">
var image = new Image();
image.onload = function(e){
document.getElementById("canvas").getContext("2d").drawImage(image,0,0, 765, 501);
}
image.src = "http://associationsportive.insa-toulouse.fr/modules/resources/download/as/Partenaires/logo_sii.jpg"
var maConnection = new WebSocket('ws://10.6.196.53:8080', ['formationhtml5-protocol']);
maConnection.onmessage = function(e) {
console.log('On', e);
};
function dataURItoBlob(dataURI) {
var binary = atob(dataURI.split(',')[1]);
var array = [];
for(var i = 0; i < binary.length; i++) {
array.push(binary.charCodeAt(i));
}
return new Blob([new Uint8Array(array)], {type: 'image/jpeg'});
}
maConnection.send("Ping");
Ready to run.
Test | Ops/sec | |
---|---|---|
ArrayBuffer |
| ready |
Blob |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.