From fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:14:29 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- testing/jsshell/benchmark.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'testing/jsshell') diff --git a/testing/jsshell/benchmark.py b/testing/jsshell/benchmark.py index 41a8db460e..b23c8d0e55 100644 --- a/testing/jsshell/benchmark.py +++ b/testing/jsshell/benchmark.py @@ -157,7 +157,7 @@ class Ares6(Benchmark): self.scores = defaultdict(lambda: defaultdict(list)) def _try_find_score(self, score_name, line): - m = re.search(score_name + ":\s*(\d+\.?\d*?) (\+-)?.+", line) + m = re.search(score_name + r":\s*(\d+\.?\d*?) (\+-)?.+", line) if not m: return False @@ -168,7 +168,7 @@ class Ares6(Benchmark): def process_line(self, proc, line): line = line.strip("\n") print(line) - m = re.search("Running... (.+) \(.+\)", line) + m = re.search(r"Running... (.+) \(.+\)", line) if m: self.bench_name = m.group(1) return @@ -182,7 +182,7 @@ class Ares6(Benchmark): if self._try_find_score("steadyState", line): return - m = re.search("summary:\s*(\d+\.?\d*?) (\+-)?.+", line) + m = re.search(r"summary:\s*(\d+\.?\d*?) (\+-)?.+", line) if m: self.last_summary = float(m.group(1)) @@ -218,7 +218,7 @@ class SixSpeed(RunOnceBenchmark): def process_line(self, proc, output): output = output.strip("\n") print(output) - m = re.search("(.+): (\d+)", output) + m = re.search(r"(.+): (\d+)", output) if not m: return subtest = m.group(1) @@ -250,7 +250,7 @@ class SunSpider(RunOnceBenchmark): def process_line(self, proc, output): output = output.strip("\n") print(output) - m = re.search("(.+): (\d+)", output) + m = re.search(r"(.+): (\d+)", output) if not m: return subtest = m.group(1) @@ -339,7 +339,7 @@ class Octane(RunOnceBenchmark): def process_line(self, proc, output): output = output.strip("\n") print(output) - m = re.search("(.+): (\d+)", output) + m = re.search(r"(.+): (\d+)", output) if not m: return subtest = m.group(1) -- cgit v1.2.3