HTML Preparation code:
AخA
 
1
<p id="hello">hello</p>
Tests:
  • cached document

     
    function start() {
      var doc = document;
      
      var p = doc.getElementById('hello');
      
      return p;
    }
  • direct document access

     
    function start() {
      var p = doc.getElementById('hello');
      
      return p;
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    cached document
    direct document access

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.16 Safari/537.36
Chrome 54 on Windows
View result in a separate tab
Test name Executions per second
cached document 69527080.0 Ops/sec
direct document access 70743768.0 Ops/sec