getElementById with Mootools

Benchmark created by Country on


Description

Some methods to get an extended element from his ID.

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/mootools/1.3.1/mootools-yui-compressed.js"></script>
<div id="mydiv"></div>

Test runner

Ready to run.

Testing in
TestOps/sec
document.id
document.id('mydiv')
ready
document.getElement
document.getElement('#mydiv')
ready
document.getElements
document.getElements('#mydiv')[0]
ready
document.getElementById
document.id(document.getElementById('mydiv'))
ready

Revisions

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

  • Revision 1: published by Country on