-
Notifications
You must be signed in to change notification settings - Fork 9
Support running Speedometer 3.0 benchmarks on Chrome #147
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -196,6 +196,8 @@ def hz_to_ghz(hzstr: str) -> str: | |
| def get_log_prologue(runtime: Runtime, bm: Benchmark) -> str: | ||
| output = "\n-----\n" | ||
| output += "mkdir -p PLOTTY_WORKAROUND; timedrun; " | ||
| # Chrome workaround to remove the cache directory between iterations. | ||
| output += "rm -rf /tmp/chrome-expr-cache; " | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't actually run anything. It gets added to the log file, but that's it. You want to use Generally, you probably don't want to do this for all runs (which is the case if it gets put inside
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that running has already created a temporary directory for each run. So you might be able to create a subfolder under it as the temporary directory for Chrome.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So what might be the cleanest is to use the plugin API to create the temporary folder under The plugin object can also delete the folder when the benchmark finishes. |
||
| output += bm.to_string(runtime) | ||
| output += "\n" | ||
| output += "running-ng v{}\n".format(__VERSION__) | ||
|
|
@@ -310,8 +312,15 @@ def run_one_benchmark( | |
| if runtime.is_oom(output): | ||
| oomed_count[c] += 1 | ||
| if exit_status is SubprocessrExit.Timeout: | ||
| timeout_count[c] += 1 | ||
| print(".", end="", flush=True) | ||
| if suite.is_passed(output): | ||
| # A hack for Chrome benchmarks so that a run is considered successful | ||
| # when Chrome remains active after all iterations complete then killed due to | ||
| # a timeout error. | ||
| config_passed = True | ||
| print(config_index_to_chr(j), end="", flush=True) | ||
| else: | ||
| timeout_count[c] += 1 | ||
| print(".", end="", flush=True) | ||
| elif exit_status is SubprocessrExit.Error: | ||
| print(".", end="", flush=True) | ||
| elif exit_status is SubprocessrExit.Normal: | ||
|
|
||
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.
The above can be simplified to
cmd.append("--js-flags={}".format(" ".join(self.js_args)))