physarum/Notes.md
2025-03-24 16:23:12 -04:00

589 B

sin and cos implementations:

Setup/Info:

  • measured in ms/agent ticked
  • 2048 iterations
  • average of 3 trials
  • 256x256 grid
  • 1 << 20 particles
  • 1 population

Results:

  • normal sin + normal cos:
    • 0.000018192ms
  • old sin + old cos:
    • 0.000019803ms (8.85% slower)
  • fast_approx::fast::sin + fast_approx::fast::cos
    • 0.000018658ms (2.56% slower)
  • fast_approx::faster::sin + fast_approx::faster::cos
    • 0.000015878ms (14.57% faster)

sin and cos lookup table:

  • With lookup tables: 0.000044201500713825226ms
  • Without lookup tables: 0.000043705105781555176ms`