timing.py

Timing tests for planetplanet. Here we compare the time it takes to compute a transit light curve among planetplanet, batman, and pysyzygy. planetplanet is currently about 10 times slower than the other two for transits. I’m working on speeding it up, but the main source of the speed difference is the fact that planetplanet computes wavelength-dependent light curves, which means the total stellar flux is not unity (as it is in the other two codes); instead, we need to evaluate the Planck function repeatedly, even when we set the spectral resolution R = 1. It’s fairly straightforward to optimize this, so stay tuned for updates!

../_images/timing-1.png