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
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div id="c1_ctl">
<div id="c1" class="ui_widget" style="display:inline-block; margin:0.2em;"> <div class="ui-widget-header ui-corner-top" style="width: 12em; padding: 0.2em;">Rechnung Nr.: 2<span class="ui-icon ui-icon-close" style="float:right;"></span> </div> <div class="ui-widget-content ui-corner-bottom" style="padding: 0.2em;"> <p> </p><div style="float:left; vertical-align:middle;"> <input type="checkbox"></div> <div style="float:left;"> <div>Kunde: person2</div> <div>Preis: 2,2€</div> </div> <p></p> </div> </div>
</div>
jQuery("#c1").replaceWith('<div id="c1" class="ui_widget" style="display:inline-block; margin:0.2em;"> <div class="ui-widget-header ui-corner-top" style="width: 12em; padding: 0.2em;">Rechnung Nr.: 2<span class="ui-icon ui-icon-close" style="float:right;"></span> </div> <div class="ui-widget-content ui-corner-bottom" style="padding: 0.2em;"> <p> </p><div style="float:left; vertical-align:middle;"> <input type="checkbox"></div> <div style="float:left;"> <div>Kunde: person2</div> <div>Preis: 2,2€</div> </div> <p></p> </div> </div>');
Ready to run.
Test | Ops/sec | |
---|---|---|
use .html() to replace the content of a wrapper |
| ready |
use .replaceWith() to replace the content |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.