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

modified scale factor for except and som.

parent c22e7102
...@@ -95,7 +95,7 @@ except: ...@@ -95,7 +95,7 @@ except:
args: args:
- 2000 - 2000
- 1 - 1
- 10 - 500
iterations: 20 iterations: 20
callback: callback:
name: clock name: clock
...@@ -124,6 +124,7 @@ som: ...@@ -124,6 +124,7 @@ som:
benchmark: benchmark:
name: SOM name: SOM
args: args:
- 200 # scale factor
- -cp - -cp
- $RPYSOM/Smalltalk - $RPYSOM/Smalltalk
- $RPYSOM/TestSuite/TestHarness.som - $RPYSOM/TestSuite/TestHarness.som
......
...@@ -24,15 +24,17 @@ def target(driver, args): ...@@ -24,15 +24,17 @@ def target(driver, args):
cb_param = argv[1] cb_param = argv[1]
cb = cb_cls(cb_param) cb = cb_cls(cb_param)
scale_factor = int(argv[2])
cb.begin() cb.begin()
retcode = 1 retcode = 1
try: for i in range(scale_factor):
main([argv[0]] + argv[2:]) try:
except Exit, e: main([argv[0]] + argv[3:])
retcode = e.code except Exit, e:
except Exception, e: retcode = e.code
os.write(2, "ERROR: %s thrown during execution.\n" % e) except Exception, e:
retcode = 1 os.write(2, "ERROR: %s thrown during execution.\n" % e)
retcode = 1
cb.end() cb.end()
cb.report() 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