Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Concat Everything 5624666.0 Ops/sec
Template Literal Everything 5545535.0 Ops/sec
Concat Optimized 8819824.0 Ops/sec
Template Literal Optimized 8782539.0 Ops/sec
Replace 32529.3 Ops/sec
Script Preparation code:
Tests:
  • Concat Everything

  • Template Literal Everything

  • Concat Optimized

  • Template Literal Optimized

  • Replace