Commits

Maciej Fijalkowski  committed 3e126f3 Merge

merge

  • Participants
  • Parent commits d552e0f, ef755ce

Comments (0)

Files changed (6)

File rpython/jit/backend/test/test_zll_stress.py

-from rpython.jit.backend.test.test_random import check_random_function, Random
-from rpython.jit.backend.test.test_ll_random import LLtypeOperationBuilder
-from rpython.jit.backend.detect_cpu import getcpuclass
-import platform
-
-CPU = getcpuclass()
-
-iterations = 1000
-if platform.machine().startswith('arm'):
-    iterations = 100
-
-
-def test_stress():
-    cpu = CPU(None, None)
-    cpu.setup_once()
-    r = Random()
-    for i in range(iterations):
-        check_random_function(cpu, LLtypeOperationBuilder, r, i, iterations)

File rpython/jit/backend/test/test_zll_stress_0.py

+from rpython.jit.backend.test import zll_stress
+
+def test_stress_0():
+    zll_stress.do_test_stress(0)

File rpython/jit/backend/test/test_zll_stress_1.py

+from rpython.jit.backend.test import zll_stress
+
+def test_stress_1():
+    zll_stress.do_test_stress(1)

File rpython/jit/backend/test/test_zll_stress_2.py

+from rpython.jit.backend.test import zll_stress
+
+def test_stress_2():
+    zll_stress.do_test_stress(2)

File rpython/jit/backend/test/test_zll_stress_3.py

+from rpython.jit.backend.test import zll_stress
+
+def test_stress_3():
+    zll_stress.do_test_stress(3)

File rpython/jit/backend/test/zll_stress.py

+from rpython.jit.backend.test.test_random import check_random_function, Random
+from rpython.jit.backend.test.test_ll_random import LLtypeOperationBuilder
+from rpython.jit.backend.detect_cpu import getcpuclass
+import platform
+
+CPU = getcpuclass()
+
+total_iterations = 1000
+if platform.machine().startswith('arm'):
+    total_iterations = 100
+
+pieces = 4
+per_piece = total_iterations / pieces
+
+
+def do_test_stress(piece):
+    cpu = CPU(None, None)
+    cpu.setup_once()
+    r = Random()
+    r.jumpahead(piece*per_piece)
+    for i in range(piece*per_piece, (piece+1)*per_piece):
+        check_random_function(cpu, LLtypeOperationBuilder, r, i, total_iterations)