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

Le vendredi 08 avril 2011 à 17:31 +0000, Antoine Pitrou a écrit :
> Antoine Pitrou <pit...@free.fr> added the comment:
> 
> > I did a similar test on Windows: test_io takes ~19.1 sec with and
> > without timeout.
> 
> You may want to test with test_argparse.

Oh... test_argparse has 1608 test! Benchmark on Linux:
- without timeout: 18.931 sec
- with timeout/function call: 19.436 sec

So on this test suite, the overhead is 2.7%. The current timeout
implementation has an overhead near 0% on the same test suite (I tried
to compute the overhead, but I found -0.2% which looks wrong :-)).

I'm too lazy to start Windows for another benchmark tonight.

----------

_______________________________________
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