fgdf

Benchmark created on


Description

dfggsd

Preparation HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="src/style.css" >
  </head>
  <body>
    <h1 id="header"></h1>

    <script src="src/script.ts"></script>
  </body>
</html>

Setup

let el = document.querySelector('#header');

Test runner

Ready to run.

Testing in
TestOps/sec
asdasds
const MAX_ITERATIONS = 1500;
let computedStyle;

for (let i = 0; i < MAX_ITERATIONS; i++) {
  for (let s = 0; s < MAX_ITERATIONS; s++) {
    computedStyle = el.getBoundingClientRect();
  }
}
ready
asdasd
console.log("meh");
ready

Revisions

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