[pypy-commit] benchmarks default: one more warmupish benchmark
fijal
noreply at buildbot.pypy.org
Mon Feb 23 16:42:18 CET 2015
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r312:a580dcb818dc
Date: 2015-02-23 17:31 +0200
http://bitbucket.org/pypy/benchmarks/changeset/a580dcb818dc/
Log: one more warmupish benchmark
diff --git a/warmup/pypy-annotate.py b/warmup/pypy-annotate.py
new file mode 100644
--- /dev/null
+++ b/warmup/pypy-annotate.py
@@ -0,0 +1,18 @@
+
+from rpython.annotator.annrpython import RPythonAnnotator
+from rpython.translator.goal.targetrpystonedalone import pystones_main
+from rpython.rtyper.rtyper import RPythonTyper
+
+import time
+l = []
+
+for i in range(1):
+ print i
+ t0 = time.time()
+ a = RPythonAnnotator()
+ a.build_types(pystones_main, [int])
+ rtyper = RPythonTyper(a)
+ rtyper.specialize()
+ l.append(time.time() - t0)
+
+print l
More information about the pypy-commit
mailing list