diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-01-30 09:10:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-30 08:10:13 +0000 |
commit | 7f0d0830e779f37da8aa7f7025edcebe57b2db26 (patch) | |
tree | e440baab928da40b4bba1a41a780b57d6953d998 /third_party/webrender/wrench/script/benchmark_server.py | |
parent | 9b6c473695e14c1a37dd70325657519b901e7efc (diff) | |
download | servo-7f0d0830e779f37da8aa7f7025edcebe57b2db26.tar.gz servo-7f0d0830e779f37da8aa7f7025edcebe57b2db26.zip |
deps: Stop vendoring WebRender (#31212)
The new strategy for dependencies with upstream in Gecko is to manage
them in separate repositories, which will more easily allow rebasing our
changes on top of newer Gecko work.
Diffstat (limited to 'third_party/webrender/wrench/script/benchmark_server.py')
-rw-r--r-- | third_party/webrender/wrench/script/benchmark_server.py | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/third_party/webrender/wrench/script/benchmark_server.py b/third_party/webrender/wrench/script/benchmark_server.py deleted file mode 100644 index b735b4380de..00000000000 --- a/third_party/webrender/wrench/script/benchmark_server.py +++ /dev/null @@ -1,59 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -from __future__ import print_function -import json -import os -import subprocess -import time -import urllib2 - -FILE = 'perf.json' -URL = 'https://wrperf.org/submit' - -while True: - try: - # Remove any previous results - try: - os.remove(FILE) - except: - pass - - # Pull latest code - subprocess.call(["git", "pull"]) - - # Get the git revision of this build - revision = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip() - - # Build - subprocess.call(["cargo", "build", "--release"]) - - # Run benchmarks - env = os.environ.copy() - # Ensure that vsync is disabled, to get meaningful 'composite' times. - env['vblank_mode'] = '0' - subprocess.call(["cargo", "run", "--release", "--", "perf", FILE], env=env) - - # Read the results - with open(FILE) as file: - results = json.load(file) - - # Post the results to server - payload = { - 'key': env['WEBRENDER_PERF_KEY'], - 'revision': revision, - 'timestamp': str(time.time()), - 'tests': results['tests'], - } - - req = urllib2.Request(URL, - headers={"Content-Type": "application/json"}, - data=json.dumps(payload)) - - f = urllib2.urlopen(req) - except Exception as e: - print(e) - - # Delay a bit until next benchmark - time.sleep(60 * 60) |