Test name | Executions per second |
---|---|
Pure JS .innerText | 1874591.4 Ops/sec |
Pure JS .innerHTML | 1155152.9 Ops/sec |
Pure JS .textContent | 4018680.0 Ops/sec |
jQuery .text() | 794512.2 Ops/sec |
jQuery .html() | 568170.6 Ops/sec |
jQuery .find().text() | 578876.8 Ops/sec |
jQuery .find().html() | 448309.6 Ops/sec |