Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Chrome 53
Windows
Other
8 years ago
Test name Executions per second
get jQuery.text() 231581.8 Ops/sec
get Element.textContent 579586.1 Ops/sec
set jQuery.text() 238050.4 Ops/sec
set Element.textContent 4422232.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • get jQuery.text()

  • get Element.textContent

  • set jQuery.text()

  • set Element.textContent