Tests:
  • by * operator (2)

  • by * operator (9999999999)

  • by * operator (999999999999999)

  • by left shift (2 << 1)

  • by left shift (9999999999 << 2)

  • by left shift (999999999999999 << 2)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    by * operator (2)
    by * operator (9999999999)
    by * operator (999999999999999)
    by left shift (2 << 1)
    by left shift (9999999999 << 2)
    by left shift (999999999999999 << 2)

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
Chrome 100 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
by * operator (2) 962303500.0 Ops/sec
by * operator (9999999999) 968825700.0 Ops/sec
by * operator (999999999999999) 964639100.0 Ops/sec
by left shift (2 << 1) 965759400.0 Ops/sec
by left shift (9999999999 << 2) 969954200.0 Ops/sec
by left shift (999999999999999 << 2) 960547900.0 Ops/sec