Tests:
  • Number +'100'

  • Number parseInt

  • String "" + 100

  • String String100

  • Number Number

  • Boolean !!1

  • Boolean Boolean

  • String new String

  • Number new Number

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Number +'100'
    Number parseInt
    String "" + 100
    String String100
    Number Number
    Boolean !!1
    Boolean Boolean
    String new String
    Number new Number

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0
Chrome 130 on Windows
View result in a separate tab
Test name Executions per second
Number +'100' 91343504.0 Ops/sec
Number parseInt 83529408.0 Ops/sec
String "" + 100 93139792.0 Ops/sec
String String100 54863140.0 Ops/sec
Number Number 82854000.0 Ops/sec
Boolean !!1 91071072.0 Ops/sec
Boolean Boolean 86631616.0 Ops/sec
String new String 77290152.0 Ops/sec
Number new Number 37476212.0 Ops/sec


;