Script Preparation code:
Tests:
  • toString()

  • toString() on strings

  • String literals

  • String literals on strings

  • String()

  • String() on strings

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    toString()
    toString() on strings
    String literals
    String literals on strings
    String()
    String() on strings

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
Chrome 95 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
toString() 6420153.5 Ops/sec
toString() on strings 8468623.0 Ops/sec
String literals 12313887.0 Ops/sec
String literals on strings 9138909.0 Ops/sec
String() 740127.2 Ops/sec
String() on strings 716435.3 Ops/sec


;