Script Preparation code:
AخA
 
const i = 12345678
Tests:
  • toString

     
    i.toString()
  • template literal

     
    `${i}`
  • string literal concat

     
    "" + i;
  • String()

     
    String(i)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    toString
    template literal
    string literal concat
    String()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Windows
View result in a separate tab
Test name Executions per second
toString 63349644.0 Ops/sec
template literal 76576352.0 Ops/sec
string literal concat 74198272.0 Ops/sec
String() 58262580.0 Ops/sec