[pypy-commit] pypy default: merge
fijal
noreply at buildbot.pypy.org
Tue Mar 26 04:29:33 CET 2013
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r62786:3e126f37c6e9
Date: 2013-03-25 20:29 -0700
http://bitbucket.org/pypy/pypy/changeset/3e126f37c6e9/
Log: merge
diff --git a/rpython/jit/backend/test/test_zll_stress_0.py b/rpython/jit/backend/test/test_zll_stress_0.py
new file mode 100644
--- /dev/null
+++ b/rpython/jit/backend/test/test_zll_stress_0.py
@@ -0,0 +1,4 @@
+from rpython.jit.backend.test import zll_stress
+
+def test_stress_0():
+ zll_stress.do_test_stress(0)
diff --git a/rpython/jit/backend/test/test_zll_stress_1.py b/rpython/jit/backend/test/test_zll_stress_1.py
new file mode 100644
--- /dev/null
+++ b/rpython/jit/backend/test/test_zll_stress_1.py
@@ -0,0 +1,4 @@
+from rpython.jit.backend.test import zll_stress
+
+def test_stress_1():
+ zll_stress.do_test_stress(1)
diff --git a/rpython/jit/backend/test/test_zll_stress_2.py b/rpython/jit/backend/test/test_zll_stress_2.py
new file mode 100644
--- /dev/null
+++ b/rpython/jit/backend/test/test_zll_stress_2.py
@@ -0,0 +1,4 @@
+from rpython.jit.backend.test import zll_stress
+
+def test_stress_2():
+ zll_stress.do_test_stress(2)
diff --git a/rpython/jit/backend/test/test_zll_stress_3.py b/rpython/jit/backend/test/test_zll_stress_3.py
new file mode 100644
--- /dev/null
+++ b/rpython/jit/backend/test/test_zll_stress_3.py
@@ -0,0 +1,4 @@
+from rpython.jit.backend.test import zll_stress
+
+def test_stress_3():
+ zll_stress.do_test_stress(3)
diff --git a/rpython/jit/backend/test/test_zll_stress.py b/rpython/jit/backend/test/zll_stress.py
rename from rpython/jit/backend/test/test_zll_stress.py
rename to rpython/jit/backend/test/zll_stress.py
--- a/rpython/jit/backend/test/test_zll_stress.py
+++ b/rpython/jit/backend/test/zll_stress.py
@@ -5,14 +5,18 @@
CPU = getcpuclass()
-iterations = 1000
+total_iterations = 1000
if platform.machine().startswith('arm'):
- iterations = 100
+ total_iterations = 100
+pieces = 4
+per_piece = total_iterations / pieces
-def test_stress():
+
+def do_test_stress(piece):
cpu = CPU(None, None)
cpu.setup_once()
r = Random()
- for i in range(iterations):
- check_random_function(cpu, LLtypeOperationBuilder, r, i, iterations)
+ 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)
More information about the pypy-commit
mailing list