STINNER Victor <victor.stin...@haypocalc.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11800>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to