-
-
Notifications
You must be signed in to change notification settings - Fork 830
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
3x~10x Performance regression between 7.2.0 and >7.3.0 on large folder #980
Comments
I can reproduce that here, but with See also |
Tested with the gnu version instead of musl, and verified that this is specific to musl.
There's still a slowdown of ~1.2x, which is probably caused by Rust stopped using jemalloc by default as you said, and jemalloc being faster in this use case than glibc malloc? I think this is covered by #710 anyway, so feel free to close this as duplicate. |
Thank you for reporting this anyway! See also: https://dev.to/sharkdp/an-unexpected-performance-regression-11ai Back then, the performance regression was between 7.0 and 7.1, so that doesn't quite fit with your results. You can easily check if a particular
|
Did a quick grep from binaries downloaded from https://github.com/sharkdp/fd/releases: Using jemalloc:
Not using jemalloc:
Looks like the patch to use jemalloc in 7.4.0 is not applied to musl build (which is also stated in the 7.4.0 release notes). |
Also tried building musl + jemalloc on the master branch (c577b08), with
So it might be worthwhile to enable jemalloc for musl build too. (From a quick glance at the github action the musl version is already building with It's still slower than 7.2.0 but that's likely #599. |
Fixes sharkdp#710. Fixes sharkdp#980.
Fixes sharkdp#710. Fixes sharkdp#980.
Partial fix for sharkdp#710 and sharkdp#980.
Noticed that some fd commends runs much slower (10x slower) when I upgraded my local fd from 6.2.0 to newest 8.3.2, and did a quick version bisect.
Looks like the regression is between 7.2.0 and 7.3.0, and all version I've tested after 7.3.0 (7.4.0, 7.5.0, 8.0.0, 8.1.1, 8.3.2) are all as about the same speed as 7.3.0.
Reproduce script:
(I'm using Chrome OS source tree as an example here, but I can reproduce similar regression on other large source tree, for example, linux source tree)
Result:
Also tried adding
--color=never
and the result are similar to this, from the changelog the only other suspect is the--exec-batch
command?Happy to provide additional testing / debug info if needed.
The text was updated successfully, but these errors were encountered: