python / pyperformance

Python Performance Benchmark Suite
http://pyperformance.readthedocs.io/
MIT License
869 stars 175 forks source link

Implement timeout mechanism #353

Open diegorusso opened 2 months ago

diegorusso commented 2 months ago

Hello,

as discussed on Discourse it would be nice to implement a timeout within pyperfomance.

If a benchmark run hangs, pyperformance doesn’t have a mechanism to time out and terminate the underlying process. We’ve had a few cases where a benchmark was hanging literally forever (deadlock) and the job was terminated by the CI system eventually (after many hours!). This is not ideal because:

Requirements:

diegorusso commented 2 months ago

I plan to implement this soon.

diegorusso commented 1 month ago

This is now done in pyperf (https://github.com/psf/pyperf/pull/205) but before merging the PR in pyperformance we need a release in pyperf.