Brandon W Maister
b5015c634b
Merge pull request #348 from gThorondorsen/test-num_days_from_ce
...
Test `Datelike::num_days_from_ce` against an alternative implementation
2019-12-23 17:19:43 -05:00
Brandon W Maister
536ac86511
Add bench for new implementation
...
Unfortunately it seems to be slightly more than twice as slow. On the plus
side, that is some justification for the existing optimizations.
2019-12-23 13:46:45 -05:00
Brandon W Maister
5ca6ff5afc
Make it harder to accidentally use private features
...
In particular if built with `--all-features` or `features = "all"` we don't
want to accidentally make it look like `YearFlags` are something that people
should use. So: hide it from docs and put it behind a dunder.
2019-12-23 13:26:05 -05:00
Brandon W Maister
4f1c35827f
Finish moving all benchmarks to criterion
...
I didn't delete some, apparently, and an internal struct had to be made public
to get its benchmark to work.
2019-11-30 18:11:03 -05:00