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
Obviously, initializing the redactor over the DOM will be slower than just building DOM elements. The question is - how much slower? How does the number of DOM elements effect this process? Is it Linear?
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script src="http://imperavi.com/js/redactor/redactor.js">
</script>
<div id="all">
</div>
var iDomElements = 1000;
var $all = $('all');
var text = 'This is a text place holder. Here you better write something about your company, like when was it founded and by who. In order to edit this text, you can either double click here and start typing using your keyboard, or you can click on the text once in order to edit the text in the right edit menu.';
Ready to run.
Test | Ops/sec | |
---|---|---|
just dom |
| ready |
with redactor |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.