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 translate3d vs translateXYZ (v17) Revision 17 of this benchmark created on September 26, 2013 Preparation HTML <script src ="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" > </script >
<style >
#box{ background-color: #f6f6f6;
background-color: #f00;
display: inline;
width: 100px;
z-index: 1040;
height: 100px;
position: fixed;
top: 0;
overflow: scroll;
-webkit-transform: translate3d(-100px, 0, 0);
-ms-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
-webkit-transition: all 0.75s ease-in-out;
transition: all 0.75s ease-in-out;
}
</style >
<div id ="box" >
Shake Me!
</div >
Setup var style = document .getElementById ('box' ).style ;
Test runner Ready to run.
Run Quick Run Testing in Test Ops/sec translate3D var X = Math .floor (Math .random () * 200 );
style.webkitTransform = "translate3D(" + X + "px," + X + "px, 0)" ;
ready
translateXYZ var X = Math .floor (Math .random () * 200 );
style.webkitTransform = "translateX(" + X + "px)" ;
ready
TranslateXY var X = Math .floor (Math .random () * 200 );
style.webkitTransform = "translate3D(" + X + "px," + X + "px, 0.1)" ;
ready
translate3D z not zero var X = Math .floor (Math .random () * 200 );
style.left = X + "px" ;
ready
Revisions You can edit these tests or add more tests to this page by appending /edit to the URL.
Revision 1 : published by Guillermo on November 17, 2011 Revision 3 : published on November 17, 2011 Revision 6 : published on January 22, 2012 Revision 7 : published on July 29, 2012 Revision 8 : published on July 29, 2012 Revision 9 : published on October 8, 2012 Revision 10 : published on October 11, 2012 Revision 11 : published on December 18, 2012 Revision 12 : published on December 19, 2012 Revision 13 : published on December 20, 2012 Revision 14 : published on December 20, 2012 Revision 15 : published on December 20, 2012 Revision 16 : published on September 26, 2013 Revision 17 : published on September 26, 2013