Skip to content

Conversation

@mattsu2020
Copy link
Contributor

  • Add dev-dependencies for divan and uucore with benchmark features to Cargo.toml
  • Include a new benchmark harness for timeout_bench
  • Optimize signal lookups using OnceLock for KILL and CONT signals to avoid repeated computations
  • Introduce preserved_child_exit function for accurate exit status handling
  • Update send_signal and wait_or_kill_process for improved efficiency and correctness
  • Update Cargo.lock with new dependency codspeed-divan-compat

This enhances performance testing capabilities and reduces overhead in signal operations for the timeout utility.

- Add dev-dependencies for divan and uucore with benchmark features to Cargo.toml
- Include a new benchmark harness for timeout_bench
- Optimize signal lookups using OnceLock for KILL and CONT signals to avoid repeated computations
- Introduce preserved_child_exit function for accurate exit status handling
- Update send_signal and wait_or_kill_process for improved efficiency and correctness
- Update Cargo.lock with new dependency codspeed-divan-compat

This enhances performance testing capabilities and reduces overhead in signal operations for the timeout utility.
@github-actions
Copy link

GNU testsuite comparison:

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

@sylvestre
Copy link
Contributor

it needs to add https://github.com/uutils/coreutils/blob/main/.github/workflows/benchmarks.yml#L25

- Include uu_timeout utility in the GitHub Actions benchmarks workflow
- Ensures performance metrics are collected for the newly added timeout command
@github-actions
Copy link

github-actions bot commented Nov 1, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (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)

… unused test

- Reduced sleep time in "long-sleep" mode from 2s to 200ms for faster execution
- Shortened timeout values in quick_exit and enforced benchmarks from 0.1s/0.05s to 0.02s
- Removed timeout_kill_after benchmark to streamline test suite and improve performance
Removed unnecessary blank lines after the bench_timeout_with_mode call in src/uu/timeout/benches/timeout_bench.rs to improve code readability and consistency.
@github-actions
Copy link

github-actions bot commented Nov 1, 2025

GNU testsuite comparison:

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

@github-actions
Copy link

GNU testsuite comparison:

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

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

GNU testsuite comparison:

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

@ChrisDryden
Copy link
Collaborator

Whats the reason that this PR is combined? Would it be possible to split the benchmarking and the timeout enhancements?

@mattsu2020
Copy link
Contributor Author

Whats the reason that this PR is combined? Would it be possible to split the benchmarking and the timeout enhancements?

separate PR
#9733

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants