Closed segasai closed 1 year ago
closed with #416
https://github.com/airspeed-velocity/asv used to be (is still?) popular for CI Benchmarks.
Yes, that sounds like a good idea. The testing infrastructure is only a year/two old, but it is now probably quite robust to start tracking.
If I am correct there is a massive performance issue with one single line of code in the dynamic sampler https://github.com/joshspeagle/dynesty/blob/583cac5b0dfb8fd62451821e4347543f6ae95017/py/dynesty/dynamicsampler.py#L1357 This line was introduced in this PR by me : ) https://github.com/joshspeagle/dynesty/pull/326
Basically the seemingly innocuous line apparently leads to the 'iteration' counter to be high from the very beginning of the sampler that does the batch. And because the ncalls over number of iterations is evaluated as efficiency and that is one of the parameters determining whether the bounds will be updated or not, that leads to progressively slower and slower batches due to much less frequent bound updates.
This is really bad. I.e. this program runs 7 time faster with the line commented out.
A couple takes