HTML Preparation code:
AخA
 
1
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
2
<div id="foo">Hello World</div>
Script Preparation code:
 
var d = "<p>test</p>";
Tests:
  • jquery text

     
    $('#foo').text(d)
  • js innerHtml

     
    document.getElementById('foo').textContent =d;
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    jquery text
    js innerHtml

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 17_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Mobile/15E148 Safari/604.1
Mobile Safari 17 on iOS 17.4.1
View result in a separate tab
Test name Executions per second
jquery text 2730921.5 Ops/sec
js innerHtml 5489693.5 Ops/sec