Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Mobile Safari/537.36
Chrome Mobile 115
Android
Mobile
one year ago
Test name Executions per second
Math.abs(x) 123631.1 Ops/sec
compare x*x 336531.4 Ops/sec
use steps 551901.3 Ops/sec
normilized 548876.0 Ops/sec
Epsilon 717432.8 Ops/sec
Script Preparation code:
Tests:
  • Math.abs(x)

  • compare x*x

  • use steps

  • normilized

  • Epsilon