React Hooks vs. Inline

11 months ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Test name Executions per second
Inline 497981.4 Ops/sec
Hooks 624482.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Inline

  • Hooks

Open this result on MeasureThat.net