Commit 144e478e authored by John Zhang's avatar John Zhang

modified scale factor for except and som.

parent c22e7102
......@@ -95,7 +95,7 @@ except:
args:
- 2000
- 1
- 10
- 500
iterations: 20
callback:
name: clock
......@@ -124,6 +124,7 @@ som:
benchmark:
name: SOM
args:
- 200 # scale factor
- -cp
- $RPYSOM/Smalltalk
- $RPYSOM/TestSuite/TestHarness.som
......
......@@ -24,15 +24,17 @@ def target(driver, args):
cb_param = argv[1]
cb = cb_cls(cb_param)
scale_factor = int(argv[2])
cb.begin()
retcode = 1
try:
main([argv[0]] + argv[2:])
except Exit, e:
retcode = e.code
except Exception, e:
os.write(2, "ERROR: %s thrown during execution.\n" % e)
retcode = 1
for i in range(scale_factor):
try:
main([argv[0]] + argv[3:])
except Exit, e:
retcode = e.code
except Exception, e:
os.write(2, "ERROR: %s thrown during execution.\n" % e)
retcode = 1
cb.end()
cb.report()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment