Add "-o/--output" option to startup.py and new_tab.py benchmark scripts to save the...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Dec 2018 23:06:47 +0000 (23:06 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Dec 2018 23:06:47 +0000 (23:06 +0000)
commit42c0550fb3cf2393bcc3b09762f0331ee5277372
treea4073c7588497475b4c1d34da0e5e5a8c62e0120
parent8b0e4d24e04b200b5f1cbf2478422dc76c455e7a
Add "-o/--output" option to startup.py and new_tab.py benchmark scripts to save the results in json format.
https://bugs.webkit.org/show_bug.cgi?id=192385

Patch by Suresh Koppisetty <skoppisetty@apple.com> on 2018-12-17
Reviewed by Ryosuke Niwa.

Sample json output for new tab benchmark script after running for 2 iterations and 2 groups. Values are in milliseconds.
{
        "NewTabBenchmark": {
                "metrics": {
                        "Time": {
                                "current": [
                                        [
                                                410.2939453125,
                                                307.81494140625
                                        ],
                                        [
                                                340.616943359375,
                                                265.94384765625
                                        ]
                                ]
                        }
                }
        }
}

Sample json output for startup time benchmark script after running for 2 iterations. Values are in milliseconds.
{
        "StartupBenchmark": {
                "metrics": {
                        "Time": {
                                "current": [
                                        [
                                                1415.2099609375,
                                                1439.552978515625
                                        ]
                                ]
                        }
                }
        }
}

* LaunchTime/launch_time.py:
* LaunchTime/new_tab.py:
(NewTabBenchmark.get_test_name):
* LaunchTime/startup.py:
(StartupBenchmark.get_test_name):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239293 268f45cc-cd09-0410-ab3c-d52691b4dbfc
PerformanceTests/ChangeLog
PerformanceTests/LaunchTime/launch_time.py
PerformanceTests/LaunchTime/new_tab.py
PerformanceTests/LaunchTime/startup.py