mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[benchmark] LogParser: Accept -?! in bench. names
Extend parser to support benchmark names that include `-?!` in names, to fully support the new Naming Convention from PR #20334.
This commit is contained in:
@@ -363,9 +363,9 @@ class LogParser(object):
|
||||
# Parse lines like this
|
||||
# #,TEST,SAMPLES,MIN(μs),MAX(μs),MEAN(μs),SD(μs),MEDIAN(μs)
|
||||
results_re = re.compile(
|
||||
r'( *\d+[, \t]+[\w.]+[, \t]+' + # #,TEST
|
||||
r'[, \t]+'.join([r'\d+'] * 2) + # at least 2...
|
||||
r'(?:[, \t]+\d*)*)') # ...or more numeric columns
|
||||
r'( *\d+[, \t]+[\w.\-\?!]+[, \t]+' + # #,TEST
|
||||
r'[, \t]+'.join([r'\d+'] * 2) + # at least 2...
|
||||
r'(?:[, \t]+\d*)*)') # ...or more numeric columns
|
||||
|
||||
def _append_result(self, result):
|
||||
columns = result.split(',') if ',' in result else result.split()
|
||||
|
||||
Reference in New Issue
Block a user