Test name | Executions per second |
---|---|
Pure JS .innerText | 1171358.8 Ops/sec |
Pure JS .innerHTML | 188222.3 Ops/sec |
Pure JS .textContent | 2127823.0 Ops/sec |
jQuery .text() | 312159.2 Ops/sec |
jQuery .html() | 110298.5 Ops/sec |
jQuery .find().text() | 160477.6 Ops/sec |
jQuery .find().html() | 89086.8 Ops/sec |