Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 497 by Bulkan: Performance problem when timeout is set on a testcase that has a cpu-bound keyword
http://code.google.com/p/robotframework/issues/detail?id=497 Robot Framework Version: Robot Framework 2.1.2 (Python 2.6.2 on win32) I have a keyword that is cpu-bound, it uses the difflib module to compare two files (130MB each). When i dont set the timeout on the testcase this test completes in about three minutes. When I set a timeout it never completes. I might be hitting the problem described in [1] and [2]. I have attached MindlessLibrary.py one keyword that spins mindlessly and a test case file defining two testcases. The first test case has no test timeout set and will finish in approximately 50 seconds. The second test case sets a test timeout of 4 minutes. This test will hit the test timeout. I am logging this issue here so that we know about the problem. Instead of running the keywords in a separate thread in Python we could run them in a child process using the multiprocessing module. [1] http://www.dabeaz.com/python/GIL.pdf [2] http://www.dabeaz.com/blog/2010/01/python-gil-visualized.html Attachments: MindlessLibrary.py 134 bytes testcases.txt 165 bytes -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings
