Test name | Executions per second |
---|---|
Pure JS .innerText | 123897.7 Ops/sec |
Pure JS .innerHTML | 26674.3 Ops/sec |
Pure JS .textContent | 298747.4 Ops/sec |
jQuery .text() | 32535.3 Ops/sec |
jQuery .html() | 16996.3 Ops/sec |
jQuery .find().text() | 29280.8 Ops/sec |
jQuery .find().html() | 14374.3 Ops/sec |