Test name | Executions per second |
---|---|
Pure JS .innerText | 1195517.5 Ops/sec |
Pure JS .innerHTML | 128103.7 Ops/sec |
Pure JS .textContent | 2378352.5 Ops/sec |
jQuery .text() | 174099.3 Ops/sec |
jQuery .html() | 59097.4 Ops/sec |
jQuery .find().text() | 135887.9 Ops/sec |
jQuery .find().html() | 51689.8 Ops/sec |