Test name | Executions per second |
---|---|
Pure JS .innerText | 1872657.4 Ops/sec |
Pure JS .innerHTML | 236679.1 Ops/sec |
Pure JS .textContent | 3489213.0 Ops/sec |
jQuery .text() | 406445.8 Ops/sec |
jQuery .html() | 146092.6 Ops/sec |
jQuery .find().text() | 308683.9 Ops/sec |
jQuery .find().html() | 128918.9 Ops/sec |