combine tag and name in benchcompare script

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-07-09 13:59:09 +00:00
parent 57fb1f32dc
commit 74a66893d0

View file

@ -28,11 +28,11 @@ for testfunc in root:
for testresult in testfunc:
tag = testresult.get('tag')
if not tag:
tag = name
tag = "notag"
value = testresult.get('value')
if not value:
continue
katiemap[tag] = value
katiemap['%s_%s' % (name, tag)] = value
qt4map = {}
tree = ET.parse('/tmp/qt4-bench.xml')
@ -42,11 +42,11 @@ for testfunc in root:
for testresult in testfunc:
tag = testresult.get('tag')
if not tag:
tag = name
tag = "notag"
value = testresult.get('value')
if not value:
continue
qt4map[tag] = value
qt4map['%s_%s' % (name, tag)] = value
print('Comparing benchmark results..')
tagmax = 0