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 innerHTML vs innerText vs nodeValue (v27) Revision 27 of this benchmark created by *andy on November 22, 2013 Preparation HTML <div id ="divinputme" >
</div >
<span id ="spaninputme" >
</span >
<script >
var a = document .getElementById ('divinputme' ),
b = document .getElementById ('spaninputme' );
s = '1,2,3,4' ;
</script >
Setup document .getElementById ('divinputme' ).innerHTML = '' ;
document .getElementById ('spaninputme' ).innerHTML = '' ;
Teardown
document .getElementById ('divinputme' ).innerHTML = '' ;
document .getElementById ('spaninputme' ).innerHTML = '' ;
Test runner Ready to run.
Run Quick Run Testing in Test Ops/sec innerText - div a.innerText = s;
ready
innerText - span b.innerText = s;
ready
innerHTML - div a.innerHTML = s;
ready
innerHTML - span b.innerHTML = s;
ready
nodeValue - div a.nodeValue = s;
ready
nodeValue - span b.nodeValue = s;
ready
textnode - div a.appendChild (document .createTextNode (s))
ready
textnode - span b.appendChild (document .createTextNode (s))
ready
Revisions You can edit these tests or add more tests to this page by appending /edit to the URL.
Revision 1 : published by lx on September 14, 2010 Revision 4 : published by David Calhoun on October 27, 2010 Revision 7 : published by Nikolay Frantsev on September 23, 2011 Revision 8 : published by vamp on January 6, 2012 Revision 9 : published on March 28, 2012 Revision 10 : published on March 29, 2012 Revision 11 : published on July 20, 2012 Revision 12 : published on July 20, 2012 Revision 13 : published on February 26, 2013 Revision 14 : published on February 26, 2013 Revision 17 : published by NAIF on June 7, 2013 Revision 18 : published on September 23, 2013 Revision 19 : published on October 13, 2013 Revision 20 : published on November 12, 2013 Revision 21 : published on November 15, 2013 Revision 22 : published on November 15, 2013 Revision 23 : published on November 15, 2013 Revision 24 : published on November 15, 2013 Revision 25 : published on November 20, 2013 Revision 26 : published on November 22, 2013 Revision 27 : published by *andy on November 22, 2013 Revision 28 : published by Ojle Nenpleto on December 10, 2013 Revision 29 : published on April 3, 2014 Revision 31 : published on June 1, 2014 Revision 32 : published on June 2, 2014 Revision 33 : published on June 2, 2014 Revision 34 : published on June 2, 2014 Revision 35 : published on June 2, 2014 Revision 36 : published on August 20, 2014 Revision 37 : published on September 2, 2014 Revision 38 : published on September 23, 2014 Revision 39 : published by mark on November 7, 2014 Revision 40 : published on November 21, 2014 Revision 41 : published on November 27, 2014 Revision 42 : published by Sam on December 2, 2014 Revision 46 : published on September 19, 2015 Revision 49 : published on February 7, 2016 Revision 50 : published by Andrew on March 25, 2016 Revision 53 : published by Gilles Piou on November 21, 2018