Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Chrome 131
Windows
Desktop
29 days ago
Test name Executions per second
Number +'100' 89096112.0 Ops/sec
Number parseInt 81585944.0 Ops/sec
String "" + 100 85526952.0 Ops/sec
String String100 46137152.0 Ops/sec
Number Number 74940784.0 Ops/sec
Boolean !!1 86128192.0 Ops/sec
Boolean Boolean 85591216.0 Ops/sec
String new String 79871800.0 Ops/sec
Number new Number 34674828.0 Ops/sec
Tests:
  • Number +'100'

  • Number parseInt

  • String "" + 100

  • String String100

  • Number Number

  • Boolean !!1

  • Boolean Boolean

  • String new String

  • Number new Number