python / pyperformance

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

Implement timeout mechanism #353

Open diegorusso opened 5 days ago

diegorusso commented 5 days 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 5 days ago

I plan to implement this soon.