Run details:
Mozilla/5.0 (Linux; Android 13) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Mobile Safari/537.36
Chrome Mobile 113
Android
Mobile
one year ago
Test name Executions per second
Table lookup 273325.5 Ops/sec
Math.pow 145618.7 Ops/sec
bitwise (1 << n) 6254165.0 Ops/sec
Script Preparation code:
Tests:
  • Table lookup

  • Math.pow

  • bitwise (1 << n)