[Webkit-unassigned] [Bug 204211] New: run-webkit-tests loads committers.py 4 times, taking about 40ms
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 14 16:42:17 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=204211
Bug ID: 204211
Summary: run-webkit-tests loads committers.py 4 times, taking
about 40ms
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
Assignee: webkit-unassigned at lists.webkit.org
Reporter: simon.fraser at apple.com
diff --git a/Tools/Scripts/webkitpy/common/config/committers.py b/Tools/Scripts/webkitpy/common/config/committers.py
index 0d63ff67c1453120169b4b8652b97fbd15aee6df..df620d5594521e71a298207592b76d75ec9dad44 100644
--- a/Tools/Scripts/webkitpy/common/config/committers.py
+++ b/Tools/Scripts/webkitpy/common/config/committers.py
@@ -32,6 +32,7 @@
import fnmatch
import json
import sys
+import time
from functools import reduce
from webkitpy.common.editdistance import edit_distance
@@ -194,7 +195,10 @@ class CommitterList(object):
if committers or reviewers or contributors:
self.load_test_data(committers, reviewers, contributors)
else:
+ start = time.time()
self.load_json()
+ end = time.time()
+ print 'Loading committers took {}ms'.format(1000 * (end - start))
self._contributors_by_name = {}
self._accounts_by_email = {}
Loading committers took 11.5311145782ms
Loading committers took 11.4798545837ms
Loading committers took 9.89007949829ms
Loading committers took 10.3440284729ms
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191115/e449aaee/attachment.htm>
More information about the webkit-unassigned
mailing list