offset vs client (v2)

Revision 2 of this benchmark created on


Preparation HTML

<div id="div>div</div>

Setup

var div = document.getElementById('div');

Test runner

Ready to run.

Testing in
TestOps/sec
offsetHeight
// async test
var h = div.offsetHeight
ready
clientHeight
// async test
var h = div.clientHeight
ready

Revisions

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