Check hidden (v14)

Revision 14 of this benchmark created on


Preparation HTML

<div>
    <div id="test">Hello there</div>
</div>

Setup

var el = document.getElementById("test");

Test runner

Ready to run.

Testing in
TestOps/sec
el.offsetParent
var w = el.offsetWidth || el.clientWidth;
var h = el.offsetHeight || el.clientHeight;
var x = el.offsetParent;
ready
ComputedStyle
var x = window.getComputedStyle(el).display;
ready

Revisions

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