Test name | Executions per second |
---|---|
Pure JS .innerText | 360179.9 Ops/sec |
Pure JS .innerHTML | 147575.1 Ops/sec |
Pure JS .textContent | 3210188.0 Ops/sec |
jQuery .text() | 209543.4 Ops/sec |
jQuery .html() | 92757.8 Ops/sec |
jQuery .find().text() | 166331.9 Ops/sec |
jQuery .find().html() | 82819.7 Ops/sec |