jquery append vs native innertext add

Benchmark created on


Preparation HTML

<div id="test">asdf</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
  var $test = $('#test');
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
jquery append
$test[0].innerText = 'asdf';
$test.append('jkl;');
ready
native innertext add
$test[0].innerText = 'asdf';
$test[0].innerText = $test[0].innerText + 'jkl;';
ready

Revisions

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