Test name | Executions per second |
---|---|
Pure JS .innerText | 1180540.0 Ops/sec |
Pure JS .innerHTML | 113929.1 Ops/sec |
Pure JS .textContent | 2829231.0 Ops/sec |
jQuery .text() | 94121.6 Ops/sec |
jQuery .html() | 75992.0 Ops/sec |
jQuery .find().text() | 82108.8 Ops/sec |
jQuery .find().html() | 67512.2 Ops/sec |