innnerHTML vs mootols set

Benchmark created by agam on


Description

This is a series of function tests...

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js"></script>

<div id="data1"></div>
<script>
  var word = "Hello world!";
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
innetHTML
document.getElementById('data1').innerHTML = word;
ready
.Set()
$('data1').set('html', word);
ready
Set with .getElementById
s = document.getElementById('data1');
$(s).set('html', word);
ready

Revisions

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