summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-07-10 20:26:37 +1000
committerDamien George <damien@micropython.org>2025-07-23 11:02:21 +1000
commit377924b4438114889d5d873317c02c01078a54a5 (patch)
tree5109302ce27ff233ea4678c01f9becc30f309e78
parent97fd18a7e299f5a00207f47c1728a9bb67a2fda0 (diff)
tests/thread/stress_aes.py: Reduce test time on PC targets.
This thread stress test is quite intensive and can run for a long time on certain targets. For example, builds with stackless enabled are slower than non-stackless, and this test in stackless mode takes around 2 minutes on the unix port of MicroPython with the existing parameters of `n_thread=20` and `n_loop=5`. It's not really necessary to test 20 threads at once, that's not really going to test anything more than 10 at once. So reduce the parameters to keep the running time reasonable. Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--tests/thread/stress_aes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/thread/stress_aes.py b/tests/thread/stress_aes.py
index d8d0acd56..ca25f8ad2 100644
--- a/tests/thread/stress_aes.py
+++ b/tests/thread/stress_aes.py
@@ -277,7 +277,7 @@ if __name__ == "__main__":
n_thread = 2
n_loop = 2
else:
- n_thread = 20
+ n_thread = 10
n_loop = 5
for i in range(n_thread):
_thread.start_new_thread(thread_entry, (n_loop,))