Run details:
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
Windows
Desktop
9 days ago
Test name Executions per second
Number +'100' 77122968.0 Ops/sec
Number parseInt 7070701.0 Ops/sec
String "" + 100 86348456.0 Ops/sec
String String100 6513986.0 Ops/sec
Number Number 6338261.5 Ops/sec
Boolean !!1 87350096.0 Ops/sec
Boolean Boolean 6953806.5 Ops/sec
String new String 7225721.0 Ops/sec
Number new Number 6044711.5 Ops/sec
Tests:
  • Number +'100'

  • Number parseInt

  • String "" + 100

  • String String100

  • Number Number

  • Boolean !!1

  • Boolean Boolean

  • String new String

  • Number new Number


;