WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.6% of users enabled 2FA.

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

only run rpy_mu with time measurement in RPython

parent 8aa0b809
......@@ -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