Message133310
With the current implementation of faulthandler.dump_tracebacks_later(), use a timeout per function means create a new thread for each function (the thread is interrupted and exits when the test is done).
Quick benchmark with test_io on Linux (lowest "real time" of 3 runs):
- time ./python Lib/test/regrtest.py -v (with timeout): 1 min 3 sec
- time ./python Lib/test/regrtest.py -v, without timeout: 1 min 3 sec
- time ./python Lib/test/test_io.py (without timeout): 1 min 3 sec
test_io have 403 tests and 8 are skipped, so it looks like the creation of ~400 threads is really fast on Linux! test_io is one of the biggest test suite I think. |
|
Date |
User |
Action |
Args |
2011-04-08 12:32:46 | vstinner | set | recipients:
+ vstinner, rhettinger, pitrou, michael.foord |
2011-04-08 12:32:46 | vstinner | set | messageid: <1302265966.22.0.951651678877.issue11800@psf.upfronthosting.co.za> |
2011-04-08 12:32:45 | vstinner | link | issue11800 messages |
2011-04-08 12:32:45 | vstinner | create | |
|