coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

wc: optimize the wc -cl case

Open sylvestre opened this issue 3 months ago • 8 comments

sylvestre avatar Sep 22 '25 21:09 sylvestre

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

github-actions[bot] avatar Sep 22 '25 21:09 github-actions[bot]

CodSpeed Performance Report

Merging #8711 will degrade performances by 39.57%

Comparing sylvestre:wc-perf (584b419) with main (443c201)

Summary

❌ 3 regressions
✅ 124 untouched
⏩ 6 skipped[^skipped]

:warning: Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
wc_lines_variable_length[(50, 500)] 3.4 ms 5.7 ms -39.57%
wc_lines_large_line_count[500000] 2.9 ms 4.7 ms -38.89%
wc_lines_extreme_line_lengths[(100000, 200)] 1.6 ms 2.5 ms -35.38%
[^skipped]: 6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

codspeed-hq[bot] avatar Sep 22 '25 21:09 codspeed-hq[bot]

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

github-actions[bot] avatar Sep 23 '25 07:09 github-actions[bot]

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

github-actions[bot] avatar Sep 23 '25 13:09 github-actions[bot]

GNU testsuite comparison:

Skip an intermittent issue tests/misc/stdbuf (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

github-actions[bot] avatar Sep 25 '25 07:09 github-actions[bot]

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

github-actions[bot] avatar Sep 29 '25 07:09 github-actions[bot]

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

github-actions[bot] avatar Oct 06 '25 20:10 github-actions[bot]

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

github-actions[bot] avatar Dec 05 '25 21:12 github-actions[bot]