Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate chrono -> time perf regressions #50

Closed
dylanhart opened this issue Jun 18, 2022 · 1 comment
Closed

Investigate chrono -> time perf regressions #50

dylanhart opened this issue Jun 18, 2022 · 1 comment

Comments

@dylanhart
Copy link
Owner

All methods touching the time package a significantly slower than their chrono counterparts.

v0.5.0

git checkout v0.5.0
cargo bench
test bench_from_string        ... bench:          14 ns/iter (+/- 2)
test bench_from_time          ... bench:           8 ns/iter (+/- 0)
test bench_generator_generate ... bench:          42 ns/iter (+/- 1)
test bench_new                ... bench:          44 ns/iter (+/- 0)
test bench_to_str             ... bench:           7 ns/iter (+/- 0)
test bench_to_string          ... bench:          20 ns/iter (+/- 0)

v0.6.0

git checkout v0.6.0
cargo bench
test bench_from_string        ... bench:          13 ns/iter (+/- 1)
test bench_from_time          ... bench:          12 ns/iter (+/- 1)
test bench_generator_generate ... bench:          55 ns/iter (+/- 1)
test bench_new                ... bench:          58 ns/iter (+/- 1)
test bench_to_str             ... bench:           7 ns/iter (+/- 0)
test bench_to_string          ... bench:          20 ns/iter (+/- 1)
@dylanhart
Copy link
Owner Author

The dependency on time has been dropped.

@dylanhart dylanhart closed this as not planned Won't fix, can't repro, duplicate, stale Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant