Commit 0fba59ee authored by John Zhang's avatar John Zhang

only run rpy_mu with time measurement in RPython

parent 8aa0b809
Pipeline #191 failed with stage
in 25 minutes and 19 seconds
......@@ -137,13 +137,13 @@ def get_display_str(stat):
def perf(config, iterations):
results = {
'cpython': get_stat(run_cpython, config, iterations=iterations),
'pypy_nojit': get_stat(run_pypy_nojit, config, iterations=iterations),
'pypy': get_stat(run_pypy, config, iterations=iterations),
'rpy_c': get_stat_compiled(compile_rpython_c, config, iterations=iterations),
'rpy_c_jit': get_stat_compiled(compile_rpython_c_jit, config, iterations=iterations),
# 'cpython': get_stat(run_cpython, config, iterations=iterations),
# 'pypy_nojit': get_stat(run_pypy_nojit, config, iterations=iterations),
# 'pypy': get_stat(run_pypy, config, iterations=iterations),
# 'rpy_c': get_stat_compiled(compile_rpython_c, config, iterations=iterations),
# 'rpy_c_jit': get_stat_compiled(compile_rpython_c_jit, config, iterations=iterations),
'rpy_mu': get_stat_compiled(compile_rpython_mu, config, iterations=iterations),
'c': get_stat_compiled(compile_c, config, iterations=iterations),
# 'c': get_stat_compiled(compile_c, config, iterations=iterations),
}
for python, result in results.items():
......@@ -162,14 +162,14 @@ def save_results(test_name, results):
def perf_fibonacci(N, iterations):
from perftarget.fibonacci import fib
from perftarget.fibonacci import fib, rpy_entry
tmpdir = py.path.local(mkdtemp())
print tmpdir
config = {
'py_file': perf_target_dir.join('fibonacci.py'),
'c_file': perf_target_dir.join('fibonacci.c'),
'rpy_fnc': fib,
'rpy_fnc': rpy_entry,
'c_sym_name': 'fib',
'llarg_ts': [lltype.Signed],
'llres_t': lltype.Signed,
......
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