Commit 49f01f07 authored by John Zhang's avatar John Zhang

added richards time measurement test

parent b42a0385
Pipeline #378 failed with stage
in 64 minutes and 2 seconds
......@@ -1158,6 +1158,19 @@ def test_rpytarget_richards():
res = run_boot_image(main, '/tmp/test_richards-mu', args=['5'])
assert res.returncode == 0, res.err
@may_spawn_proc
def test_rpytarget_richards_measure_time():
from rpython.translator.goal.richards import entry_point
def main(argv):
iterations = int(argv[1])
res, t0, t1 = entry_point(iterations)
print 'result =', res
print 'avg time =', (t1 - t0) / iterations
return 0
res = run_boot_image(main, '/tmp/test_richards_measure_time-mu', args=['5'])
assert res.returncode == 0, res.err
@may_spawn_proc
def test_dtoa():
from rpython.rlib.rdtoa import dtoa
......
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