Test name | Executions per second |
---|---|
Pure JS .innerText | 1345757.5 Ops/sec |
Pure JS .innerHTML | 192566.5 Ops/sec |
Pure JS .textContent | 2210722.8 Ops/sec |
jQuery .text() | 291891.7 Ops/sec |
jQuery .html() | 112131.8 Ops/sec |
jQuery .find().text() | 200495.0 Ops/sec |
jQuery .find().html() | 51714.0 Ops/sec |