Bug 1632402 - added --browsertime-iterations r=sparky
authorTarek Ziadé <tarek@mozilla.com>
Thu, 23 Apr 2020 19:40:56 +0000
changeset 525680 a918d915d844e57c0d8d02ee4438f177a6d901d0
parent 525679 4633cf06d35512d5712c9266ee4ae044dbb3163d
child 525681 ff8c53bfb7ec1a98a5c58c8d8c8e5c29a95c27a3
push id37342
push usercbrindusan@mozilla.com
push dateFri, 24 Apr 2020 03:06:24 +0000
treeherdermozilla-central@3f7b8c984869 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssparky
bugs1632402
milestone77.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1632402 - added --browsertime-iterations r=sparky Added the --browsertime-iterations option Differential Revision: https://phabricator.services.mozilla.com/D72101
python/mozperftest/mozperftest/browser/browsertime/runner.py
--- a/python/mozperftest/mozperftest/browser/browsertime/runner.py
+++ b/python/mozperftest/mozperftest/browser/browsertime/runner.py
@@ -29,16 +29,17 @@ class BrowsertimeRunner(NodeRunner):
     """Runs a browsertime test.
     """
 
     name = "browsertime"
     activated = True
 
     arguments = {
         "cycles": {"type": int, "default": 1, "help": "Number of full cycles"},
+        "iterations": {"type": int, "default": 1, "help": "Number of iterations"},
         "binary": {
             "type": str,
             "default": None,
             "help": "Path to the desktop browser, or Android app name.",
         },
         "clobber": {
             "action": "store_true",
             "default": False,
@@ -302,17 +303,17 @@ class BrowsertimeRunner(NodeRunner):
             os.makedirs(result_dir, exist_ok=True)
 
         args = [
             "--resultDir",
             result_dir,
             "--firefox.profileTemplate",
             profile,
             "--iterations",
-            "1",
+            str(self.get_arg("iterations")),
             test_script,
         ]
 
         if self.get_arg("verbose"):
             args += ["-vvv"]
 
         extra_options = self.get_arg("extra-options")
         if extra_options: