Conversation
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
1 similar comment
|
GNU testsuite comparison: |
|
could you please run hyperfine with the three programs? gnu, without the patch and with the patch |
|
GNU testsuite comparison: |
Implementation DetailsGMP 6.3.0 and GNU coreutils 9.5 were built and installed from source Created factor_numbers_u128_repeat.txt (60 lines) as benchmark input, containing 6 composite numbers ranging from 64 to 128 bits repeated 10 times. Confirmed factorization completion across all 3 implementations and reran Hyperfine.
To reduce variance, we adjusted to 3 warm-ups + 12 measurements, but the Rust version still shows relatively high dispersion due to its randomized algorithm. For greater stability, consider running at times of low system load or using CPU pinning. For factor_numbers.txt (max ~260 bits), both the GNU version and the patched version achieved complete factorization. The old implementation returned |
Merging this PR will not alter performance
Comparing Footnotes
|
|
GNU testsuite comparison: |
09d5c51 to
fe34cf2
Compare
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
Any idea why codspeed does not detect it? |
If I were to consider it, I would create test cases with large integers. |
|
GNU testsuite comparison: |
1 similar comment
|
GNU testsuite comparison: |
0dfc79b to
aea625a
Compare
|
GNU testsuite comparison: |
|
many jobs are failing |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
please add a test to verify that factor 15111234931751377131713914373267893176342349831 is indeed fixed |
|
GNU testsuite comparison: |
- Add num-integer dependency to support enhanced numeric operations. - Refactor factorization logic to avoid redundant parsing and optimize u64/u128 paths. - Improve handling of non-positive and invalid inputs to align with GNU factor behavior. - Enhance large BigUint factoring with additional algorithms and clearer limitations.
3237eed to
0b50bcc
Compare
|
GNU testsuite comparison: |
Performance improvement for large numbers
fix this issue
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2131212
related
#10262