Test name | Executions per second |
---|---|
Pure JS .innerText | 1486566.0 Ops/sec |
Pure JS .innerHTML | 156769.5 Ops/sec |
Pure JS .textContent | 2714709.0 Ops/sec |
jQuery .text() | 278005.6 Ops/sec |
jQuery .html() | 107781.3 Ops/sec |
jQuery .find().text() | 225717.6 Ops/sec |
jQuery .find().html() | 78317.7 Ops/sec |