Update e2e_benchmark.py

This commit is contained in:
Siarhei Fedartsou 2024-06-16 09:00:22 +02:00 committed by GitHub
parent ceae528546
commit 179c44f2a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,6 +41,10 @@ class BenchmarkRunner:
code = response.json()['code']
if code == 'NoSegment' or code == 'NoMatch':
continue
elif benchmark_name == 'route':
code = response.json()['code']
if code == 'NoRoute':
continue
raise Exception(f"Error: {response.status_code} {response.text}")
times.append((end_time - start_time) * 1000) # convert to ms