Test name | Executions per second |
---|---|
Pure JS .innerText | 429438.3 Ops/sec |
Pure JS .innerHTML | 1234205.0 Ops/sec |
Pure JS .textContent | 2275183.0 Ops/sec |
jQuery .text() | 792269.1 Ops/sec |
jQuery .html() | 625353.5 Ops/sec |
jQuery .find().text() | 249450.7 Ops/sec |
jQuery .find().html() | 341746.1 Ops/sec |