Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
Chrome 91
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
el.textContent 3x 274550.5 Ops/sec
el.textContent 1x 709911.6 Ops/sec
el.textContent 3x with requestAnimationFrame and function inside 888416.8 Ops/sec
el.textContent 1x with requestAnimationFrame and function inside 1033923.0 Ops/sec
el.textContent 3x with requestAnimationFrame and arrow function inside 893016.4 Ops/sec
el.textContent 1x with requestAnimationFrame and arrow function inside 1091226.0 Ops/sec
el.textContent 3x with requestAnimationFrame and function outside 928537.0 Ops/sec
el.textContent 1x with requestAnimationFrame and function outside 1089541.0 Ops/sec
el.textContent 3x with requestAnimationFrame and arrow function outside 910666.5 Ops/sec
el.textContent 1x with requestAnimationFrame and arrow function outside 985887.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • el.textContent 3x

  • el.textContent 1x

  • el.textContent 3x with requestAnimationFrame and function inside

  • el.textContent 1x with requestAnimationFrame and function inside

  • el.textContent 3x with requestAnimationFrame and arrow function inside

  • el.textContent 1x with requestAnimationFrame and arrow function inside

  • el.textContent 3x with requestAnimationFrame and function outside

  • el.textContent 1x with requestAnimationFrame and function outside

  • el.textContent 3x with requestAnimationFrame and arrow function outside

  • el.textContent 1x with requestAnimationFrame and arrow function outside