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
one month ago
Test name Executions per second
Number +'100' 97882080.0 Ops/sec
Number parseInt 74443072.0 Ops/sec
String "" + 100 80546400.0 Ops/sec
String String100 50361776.0 Ops/sec
Number Number 84082320.0 Ops/sec
Boolean !!1 93330688.0 Ops/sec
Boolean Boolean 78482704.0 Ops/sec
String new String 71835664.0 Ops/sec
Number new Number 34054300.0 Ops/sec
Tests:
  • Number +'100'

  • Number parseInt

  • String "" + 100

  • String String100

  • Number Number

  • Boolean !!1

  • Boolean Boolean

  • String new String

  • Number new Number