-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --jit flag to Benchmarker #178
Conversation
7b3de18
to
91e26ba
Compare
c339958
to
101d5f5
Compare
Please rebase this patch based on the main branch |
cf2b717
to
7a9be59
Compare
test/wasmBenchmarker/benchmark.py
Outdated
if not os.path.exists(path): | ||
print("invalid path for run") | ||
exit(1) | ||
|
||
tc_path = path + "/wasm/" + name + ".wasm" | ||
print("TC path: " + tc_path) | ||
result = subprocess.check_output(engine + " --run-export runtime " + tc_path, shell=True) | ||
flags = "--jit --run-export runtime" if jit else "--run-export runtime" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a string duplication. Maybe this work:
"--run-export runtime" + (" --jit" if jit else "")
7a9be59
to
454673f
Compare
test/wasmBenchmarker/benchmark.py
Outdated
@@ -161,13 +164,13 @@ def run_wasm(engine, path, name): | |||
return True | |||
|
|||
|
|||
def measure_time(path, name, functon, engine=None): | |||
def measure_time(path, name, functon, engine=None, jit=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not introduced here, but functon
should be changed to function
. Otherwise the patch ok.
454673f
to
a1c22fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.