true, false: Improve perf & fix clippy::unnecessary_wraps#11200
true, false: Improve perf & fix clippy::unnecessary_wraps#11200sylvestre merged 1 commit intouutils:mainfrom
Conversation
Merging this PR will improve performance by ×39
Performance Changes
Comparing Footnotes
|
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
I considered that |
|
this is fascinating |
|
Still 2x slower than GNU. Needs help of Rust |
|
In most shells, |
|
We cannot symlink shell built-ins as dummy and cannot call from other binaries. |
|
I mean we don't need to focus on optimising further, since modern shells won't be using our implementations. Besides, 1.7 ns per call is already fast in absolute terms. |
|
OK. I'll consider the reasonable way to extend this idea for other utils before optimizing |
|
I wonder why we only saw improvements for consecutive calls benchmarks and not for |
|
true_no_args |
|
< 1ns makes doesn't make sense. For comparison, that is less than 5 cycles on a 5 GHz CPU |
|
I meant 813.3 ns to less than 1ns |
|
Less than 1 ns doesn't seem plausible, I'm suggesting there is some kind of measurement error. |
|
The bench does not inclode time for process generation. |
Closes #11177