Bug description:
On my machine (macbook air M1) single run of test_free_threading takes about two minutes:
./python.exe-mtest-qtest_free_threadingUsingrandomseed: 13142960930:00:00loadavg: 1.62Run1testsequentiallytest_free_threadingpassedin1min42sec==Testsresult: SUCCESS==Totalduration: 1min42secTotaltests: run=19Totaltestfiles: run=1/1Result: SUCCESS
Refleak tests takes much longer time:
./python.exe-mtest-R3:3test_free_threadingUsingrandomseed: 18785266100:00:00loadavg: 2.82Run1testsequentially0:00:00loadavg: 2.82 [1/1] test_free_threadingbeginning6repetitions. Showingnumberofleaks (. for0orless, Xfor10ormore)
123:456XX. ...
test_free_threadingpassedin9min54sec==Testsresult: SUCCESS==1testOK.
Totalduration: 9min54secTotaltests: run=19Totaltestfiles: run=1/1Result: SUCCESS
But if we apply requires("cpu") decorator to the test_dict.TestDict, time for the refleak tests reduces to ~3 minutes:
./python.exe-mtest-R3:3test_free_threadingUsingrandomseed: 29851741830:00:00loadavg: 1.94Run1testsequentially0:00:00loadavg: 1.94 [1/1] test_free_threadingbeginning6repetitions. Showingnumberofleaks (. for0orless, Xfor10ormore)
123:456XXX.2.
test_free_threadingleaked [0, 2, 0] memoryblocks, sum=2 (thisisfine)
test_free_threadingpassedin2min54sec==Testsresult: SUCCESS==1testOK.
Totalduration: 2min54secTotaltests: run=14skipped=1Totaltestfiles: run=1/1Result: SUCCESS
FYI, this is a debug, non free-threaded build.
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
Bug description:
On my machine (macbook air M1) single run of
test_free_threadingtakes about two minutes:Refleak tests takes much longer time:
But if we apply
requires("cpu")decorator to thetest_dict.TestDict, time for the refleak tests reduces to ~3 minutes:FYI, this is a debug, non free-threaded build.
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
test_free_threading.test_dictas cpu-heavy test #120565