Test name | Executions per second |
---|---|
Pure JS .innerText | 269953.4 Ops/sec |
Pure JS .innerHTML | 314302.5 Ops/sec |
Pure JS .textContent | 310742.9 Ops/sec |
jQuery .text() | 205432.7 Ops/sec |
jQuery .html() | 209089.0 Ops/sec |
jQuery .find().text() | 102238.5 Ops/sec |
jQuery .find().html() | 141961.0 Ops/sec |