Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Ubuntu
Desktop
3 months ago
Test name Executions per second
using plus operator 47683.6 Ops/sec
using concat function 969.1 Ops/sec
using template literals 10460.5 Ops/sec
Script Preparation code:
Tests:
  • using plus operator

  • using concat function

  • using template literals