create html in jquery or minified (v3)

Revision 3 of this benchmark created on


Description

Creating an HTML element in jQuery versus creating an HTML element in MinifiedJS

Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>jQuery.noConflict();</script>
<script src="https://maartenbelmans.com/js/minified.js"></script>
<script>MINI = require('minified');
tsc = MINI.$, $$=MINI.$$, EE=MINI.EE;</script>

Test runner

Ready to run.

Testing in
TestOps/sec
create span with jQuery
var x = jQuery('<span>Test content in SPAN</span>');
ready
create span with minified
var x = EE('span','Test content in SPAN')();
ready
Native HTML DOM createElement()
var x = document.createElement('span').appendChild(document.createTextNode('Test content in SPAN'));
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.