[pypy-svn] r55635 - pypy/dist/pypy/translator/goal
arigo at codespeak.net
arigo at codespeak.net
Fri Jun 6 15:52:01 CEST 2008
Author: arigo
Date: Fri Jun 6 15:52:00 2008
New Revision: 55635
Modified:
pypy/dist/pypy/translator/goal/gcbench.py
Log:
For comparison purposes, let "--threads=1" mean that we want to have 1
background thread, instead of only running the logic in the main thread.
This lets us measure e.g. the sys.checkinterval overhead.
Modified: pypy/dist/pypy/translator/goal/gcbench.py
==============================================================================
--- pypy/dist/pypy/translator/goal/gcbench.py (original)
+++ pypy/dist/pypy/translator/goal/gcbench.py Fri Jun 6 15:52:00 2008
@@ -128,7 +128,7 @@
t.join()
print "All %d threads finished" % (nthreads,)
-def main(depths=DEFAULT_DEPTHS, threads=1):
+def main(depths=DEFAULT_DEPTHS, threads=0):
println("Garbage Collector Test")
println(" Stretching memory with a binary tree of depth %d" % kStretchTreeDepth)
print_diagnostics()
@@ -150,7 +150,7 @@
i += 1
print_diagnostics()
- if threads > 1:
+ if threads:
time_parallel_constructions(depths, threads)
else:
time_constructions(depths)
@@ -171,7 +171,7 @@
def entry_point(argv):
depths = DEFAULT_DEPTHS
- threads = 1
+ threads = 0
repeatcount = 1
for arg in argv[1:]:
if arg.startswith('--threads='):
More information about the Pypy-commit
mailing list