Test name | Executions per second |
---|---|
Pure JS .innerText | 2058168.4 Ops/sec |
Pure JS .innerHTML | 155383.7 Ops/sec |
Pure JS .textContent | 3110193.0 Ops/sec |
jQuery .text() | 417376.1 Ops/sec |
jQuery .html() | 104191.6 Ops/sec |
jQuery .find().text() | 283731.1 Ops/sec |
jQuery .find().html() | 89477.7 Ops/sec |