Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
$(document).height() vs document.body.clientHeight
$(document).height() vs document.body.clientHeight
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Browser:
Chrome 132
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
document.body.clientHeight
1.4M/s
$(document).height()
264K/s
View exact numbers
Test name
Executions per second
✓
document.body.clientHeight
1,374,198 Ops/sec
$(document).height()
264,398 Ops/sec
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js'></script>
Tests:
$(document).height()
var height = $(document).height();
document.body.clientHeight
var height = document.body.clientHeight;