Script Preparation code:
AخA
 
var x = 0x12345678;
var y;
Tests:
  • Math.imul

     
    for (var i = 0i < 10000; ++i) {
      y = Math.imul(x, i);
    }
  • Polyfill

     
    for (var i = 0; i < 10000; ++i) {
      y = (x & 0xffff) * i + (((x >>> 16) * (i & 0xffff)) << 16);
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Math.imul
    Polyfill

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Linux; Android 10; SOV41) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.181 Mobile Safari/537.36
Chrome Mobile 88 on Android
View result in a separate tab
Test name Executions per second
Math.imul 155.9 Ops/sec
Polyfill 204.5 Ops/sec