Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Windows
Desktop
one year ago
Test name Executions per second
Math.sin 3187.6 Ops/sec
Math.cos 3449.3 Ops/sec
fastSin 4900.3 Ops/sec
fastCos 4490.5 Ops/sec
lookupSin 1243.4 Ops/sec
lookupCos 1293.5 Ops/sec
Script Preparation code:
Tests:
  • Math.sin

  • Math.cos

  • fastSin

  • fastCos

  • lookupSin

  • lookupCos