-
Notifications
You must be signed in to change notification settings - Fork 545
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
Local is horribly slow when used in multi-threads #277
Comments
Wrote another benchmark directly use time crate. Although it is still somehow slow, it is better than current one: #[bench]
fn bench_time(b: &mut test::Bencher) {
b.iter(|| {
multithread_iter(move || {
let tm = time::at(time::Timespec::new(test::black_box(1500000000), 0));
test::black_box(tm);
});
});
} On my Macbook MacOS:
On one Linux machine:
On another Linux machine:
|
This part of chrono has been significantly reworked. Results on my Linux pc:
The same implementation is used on MacOS. @breezewish It has been many years. Do you want to re-run your benchmark? |
@pitdicker Cool, thanks for the benchmark! |
@breezewish thanks for following up so quickly after all those years! |
On my Macbook MacOS:
On one Linux machine:
On another Linux machine:
The text was updated successfully, but these errors were encountered: