Script Preparation code:
Tests:

Historical Performance Data aggregated from 52 community runs

Desktop Results:
Chrome 30 runs
atan2
381/s
acos
144/s

Fastest: atan2 (2.7x faster)

View exact numbers
  • atan2: 381 ops/sec
  • acos: 144 ops/sec
Firefox 22 runs
acos
2K/s
atan2
44/s

Fastest: acos (56.3x faster)

View exact numbers
  • acos: 2,497 ops/sec
  • atan2: 44 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    acos
    atan2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:150.0) Gecko/20100101 Firefox/150.0
Firefox 150 on Windows
View result in a separate tab
acos
3K/s
atan2
59/s
View exact numbers
Test name Executions per second
acos 2,577 Ops/sec
atan2 59 Ops/sec