Eric Sheppard
8bc413936f
add bench for Local::now()
2022-11-11 13:16:10 +01:00
Dirkjan Ochtman
22b4d32498
Avoid use of deprecated API
2022-11-09 13:37:17 +01:00
Dirkjan Ochtman
a9b250764f
Deprecate methods that have an _opt() alternative
2022-10-09 14:15:02 +02:00
Micha White
39ac80a6a5
Removed a couple of zero-prefixed literals
2022-06-25 22:41:46 +02:00
Constantin Nickel
c9db7d1f92
Remove extern crate
statements from benches, tests & doc examples
2022-03-28 21:52:12 +02:00
Dirkjan Ochtman
aaf9381d6a
Make criterion an optional dependency
...
Unfortunately dev-dependencies are not allowed to be optional.
2022-03-19 20:38:18 -07:00
Brandon W Maister
febb8dc168
rustfmt everything
2020-06-27 17:04:22 -04:00
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
Brandon W Maister
80da04381c
add serialization benchmark
2019-11-24 15:05:47 -05:00
Brandon W Maister
8de2cc375f
switch to using criterion for benchmarks
...
It has a ton of great features[1], including stronger statistical signifance
tests, making comparisons to previous or baseline runs, nice plots, and being
able to be run on stable.
1: https://bheisler.github.io/criterion.rs/book/
2019-11-24 13:51:27 -05:00