From ddca2be416203a7a527bf8ff69e2719ccf23ab69 Mon Sep 17 00:00:00 2001 From: Mick Jordan <mick.jordan@oracle.com> Date: Thu, 2 Jun 2016 16:57:32 -0700 Subject: [PATCH] Add methods for generic benchmark support --- mx.fastr/mx_fastr.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mx.fastr/mx_fastr.py b/mx.fastr/mx_fastr.py index 0ead9f0edc..9c32408af0 100644 --- a/mx.fastr/mx_fastr.py +++ b/mx.fastr/mx_fastr.py @@ -70,6 +70,13 @@ _repl_command = 'com.oracle.truffle.tools.debug.shell.client.SimpleREPLClient' _command_class_dict = {'r': _r_command_project + ".shell.RCommand", 'rscript': _r_command_project + ".shell.RscriptCommand", 'rrepl': _repl_command} +# benchmarking support +def r_path(): + return join(_fastr_suite.dir, 'bin', 'R') + +def r_version(): + # Could figure this out dynamically + return 'R-3.2.4' def do_run_r(args, command, extraVmArgs=None, jdk=None, **kwargs): ''' -- GitLab