Ouranosinc / xclim-benchmark

MIT License
0 stars 0 forks source link

Bench `percentile_doy` #5

Open aulemahal opened 3 years ago

aulemahal commented 3 years ago

This notebook compares 4 versions of the percentile_doy code.

  1. xclim_023, the old version using groupby+nanpercentiles.
  2. xclim_024, first version of Ouranosinc/xclim#638, using MultiIndex+partial-nanpercentiles.
  3. xclim_dev, using MultiIndex+apply_ufunc (reusing the _calc_perc of xclim.ensembles)
  4. xclim_dev2,using groupby+apply_ufunc.

Ver 2 and 3 are limited to daily datasets.

Has can be seen in the notebook, V2 and V3 are the fastest. V4 suffers from the use of groupby, but that allows it to have no limitations on the sampling frequency. V3 and V4 are lazy, whereas the 2 others aren't.

review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB