Test name | Executions per second |
---|---|
Pure JS .innerText | 1147969.9 Ops/sec |
Pure JS .innerHTML | 128409.0 Ops/sec |
Pure JS .textContent | 2153460.5 Ops/sec |
jQuery .text() | 192122.5 Ops/sec |
jQuery .html() | 52714.4 Ops/sec |
jQuery .find().text() | 125092.1 Ops/sec |
jQuery .find().html() | 41602.0 Ops/sec |