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() 233446.2 Ops/sec
get Element.textContent 577786.5 Ops/sec
set jQuery.text() 235184.0 Ops/sec
set Element.textContent 4459565.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • get jQuery.text()

  • get Element.textContent

  • set jQuery.text()

  • set Element.textContent


;