Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Chrome 67
Mac OS X 10.12.6
Desktop
6 years ago
Test name Executions per second
Umbrella JS .text 464483.2 Ops/sec
Umbrella JS .html 63593.3 Ops/sec
Umbrella JS .find().text() 42679.4 Ops/sec
jQuery .text() 95396.3 Ops/sec
jQuery .html() 63687.6 Ops/sec
jQuery .find().text() 79899.7 Ops/sec
jQuery .find().html() 52848.9 Ops/sec
HTML Preparation code:
Tests:
  • Umbrella JS .text

  • Umbrella JS .html

  • Umbrella JS .find().text()

  • jQuery .text()

  • jQuery .html()

  • jQuery .find().text()

  • jQuery .find().html()