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
HTML = '<article class="newarticle"><div class="floatL"><a href="http://www.theverge.com/2012/6/28/3123778/google-io-samsung-chromebox"><div class="shadowbox"><img src="http://cdn2.sbnation.com/entry_photo_images/4502718/verge-googleio-lb-4760_large_large.jpg" alt="via d35lb3dl296zwu.cloudfront.net"></div></a></div><h2 class="title"><span style="height: 1em; display: inline-block; width: 20px;"></span><a href="http://www.theverge.com/2012/6/28/3123778/google-io-samsung-chromebox">Google I/O attendees get free Samsung Chromeboxes, too</a></h2><div class="newtextbox"><div class="smallbox"><p>Stuck around for day two of Google I/O? You getting a Samsung Chromebox.This is in addition to... < /p></div > < /div><div class="byline newbyline"><div class="floatL newheatbox"><a href="http:/ / www.theverge.com / 2012 / 6 / 28 / 3123778 / google - io - samsung - chromebox#comments " class="heat4 newheat ">67</a></div><div class="heat4 floatL newflag "></div><div class="floatL newinfobox "><a href="http: //www.theverge.com/users/ohnorosco" class="author">Ross MillerNaNJune 28, 2012 02:11 pm</a></div></div><a onclick="; return false" href="#" class="pushbox"><div></div><div class="heat4 heatpush"></div></a><p class="categories"></p></article>';
Ready to run.
Test | Ops/sec | |
---|---|---|
Normal Append |
| ready |
Document Fragment |
| ready |
Normal Append Last |
| ready |
documentFragment childNode |
| ready |
documentFragment cloneNode innerHTML |
| ready |
Normal Append cloneNode then innerHTML |
| ready |
Normal Append after cloneNode innerHTML |
| ready |
normal append outerHTML |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.