Test name | Executions per second |
---|---|
Pure JS .innerText | 315177.5 Ops/sec |
Pure JS .innerHTML | 697896.4 Ops/sec |
Pure JS .textContent | 769503.9 Ops/sec |
jQuery .text() | 118396.2 Ops/sec |
jQuery .html() | 114666.0 Ops/sec |
jQuery .find().text() | 43140.0 Ops/sec |
jQuery .find().html() | 40641.8 Ops/sec |