Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50
Safari 10
Mac OS X 10.12
Other
8 years ago
Test name Executions per second
get jQuery.text() 535204.3 Ops/sec
get Element.textContent 1379721.2 Ops/sec
set jQuery.text() 325394.8 Ops/sec
set Element.textContent 1167897.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • get jQuery.text()

  • get Element.textContent

  • set jQuery.text()

  • set Element.textContent


;