Skip to content
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

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

GorogPeter
Copy link
Contributor

No description provided.

@zherczeg zherczeg force-pushed the jit_next branch 3 times, most recently from 7b3de18 to 91e26ba Compare October 18, 2023 10:19
@zherczeg zherczeg force-pushed the jit_next branch 6 times, most recently from c339958 to 101d5f5 Compare October 31, 2023 06:10
@clover2123
Copy link
Collaborator

Please rebase this patch based on the main branch

@GorogPeter GorogPeter changed the base branch from jit_next to main November 2, 2023 08:21
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"
Copy link
Collaborator

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 "")

@@ -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):
Copy link
Collaborator

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.

Copy link
Collaborator

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@clover2123 clover2123 merged commit f47ea6f into Samsung:main Nov 9, 2023
12 checks passed
@GorogPeter GorogPeter deleted the JitBenchmarkFlag branch November 16, 2023 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants