HTML Preparation code:
x
 
1
<!DOCTYPE html>
2
<html>
3
4
<head>
5
    <title>A Meaningful Page Title</title>
6
</head>
7
8
<body>
9
10
    The content of the document......
11
12
</body>
13
14
</html>
Tests:
  • querySelector

     
    document.querySelector("head")
  • getElementsByTagName

     
    document.getElementsByTagName("head")[0]
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    querySelector
    getElementsByTagName

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
querySelector 8998708.0 Ops/sec
getElementsByTagName 7452778.0 Ops/sec