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 (v57) Revision 57 of this benchmark created by impfromliga on January 5, 2016 Preparation HTML <canvas id ="cnv" width ="320" height ="240" >
</canvas >
<img id ="img" src ="http://mozilla.org/media/img/firefox/template/header-logo-inverse.png" style ="display: none" />
Setup function createCanvas (w, h ) {
var canvas = document .createElement ('canvas' );
canvas.setAttribute ('width' , w);
canvas.setAttribute ('height' , h);
return canvas;
}
var g_ctx = document .getElementById ('cnv' ).getContext ('2d' );
var g_img = document .getElementById ('img' );
var g_offscreenCtx = createCanvas (g_img.naturalWidth , g_img.naturalHeight ).getContext ('2d' );
var g_offscreenImg = new Image ();
g_offscreenCtx.drawImage (g_img, 0 , 0 );
g_offscreenImg.src ="http://mozilla.org/media/img/firefox/template/header-logo-inverse.png"
Test runner Ready to run.
Run Quick Run Testing in Test Ops/sec img g_ctx.drawImage (g_img, 0 , 0 );
ready
not-in-dom canvas g_ctx.drawImage (g_offscreenCtx.canvas , 0 , 0 );
ready
not-in-dom image g_ctx.drawImage (g_offscreenImg, 0 , 0 );
ready
Revisions You can edit these tests or add more tests to this page by appending /edit to the URL.
Revision 1 : published by alekop on July 12, 2012 Revision 2 : published on July 13, 2012 Revision 3 : published on July 13, 2012 Revision 4 : published by alekop on July 13, 2012 Revision 5 : published by alekop on July 13, 2012 Revision 6 : published by Kashey on July 16, 2012 Revision 7 : published on July 16, 2012 Revision 8 : published by Kashey on July 16, 2012 Revision 9 : published on July 16, 2012 Revision 11 : published by Witali on November 5, 2012 Revision 12 : published by Jonathan on November 13, 2012 Revision 14 : published by Ben on December 13, 2012 Revision 15 : published by Ben on December 14, 2012 Revision 16 : published on December 19, 2012 Revision 18 : published on March 14, 2013 Revision 19 : published on May 21, 2013 Revision 20 : published on August 7, 2013 Revision 21 : published on August 20, 2013 Revision 24 : published on November 6, 2013 Revision 25 : published by Developer on March 20, 2014 Revision 26 : published on April 17, 2014 Revision 27 : published on June 12, 2014 Revision 28 : published on June 12, 2014 Revision 29 : published on August 19, 2014 Revision 30 : published on August 19, 2014 Revision 31 : published on August 19, 2014 Revision 32 : published on September 10, 2014 Revision 33 : published on September 17, 2014 Revision 34 : published on March 26, 2015 Revision 35 : published on March 31, 2015 Revision 36 : published on March 31, 2015 Revision 39 : published on April 21, 2015 Revision 40 : published on April 21, 2015 Revision 41 : published on April 21, 2015 Revision 43 : published on May 12, 2015 Revision 46 : published by kkek on September 8, 2015 Revision 47 : published by kkek on September 8, 2015 Revision 48 : published by asdada on September 10, 2015 Revision 53 : published by olydis on November 18, 2015 Revision 54 : published by peterlustig on November 29, 2015 Revision 56 : published on December 26, 2015 Revision 57 : published by impfromliga on January 5, 2016 Revision 60 : published by happyWang on January 9, 2016 Revision 61 : published on February 16, 2016 Revision 62 : published on March 16, 2016 Revision 63 : published on March 23, 2016 Revision 64 : published on March 23, 2016 Revision 65 : published on March 23, 2016 Revision 66 : published on March 23, 2016 Revision 67 : published on March 23, 2016 Revision 68 : published on March 23, 2016