lower result values in benchcompare script if they are too big

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-12-01 13:02:08 +00:00
parent f9251645c4
commit c4454ae362

View file

@ -3,6 +3,13 @@
import os, sys, subprocess
import xml.etree.ElementTree as ET
def medianvalues(v1, v2):
maxv = 1000000
if v1 > maxv and v2 > maxv:
v1 = v1 / 1024
v2 = v2 / 1024
return (v1, v2)
if len(sys.argv) < 3:
print("usage: <path to Katie test> <path to Qt4 test>")
sys.exit(1)
@ -82,6 +89,7 @@ for ktag in katiemap:
iqvalue = float(qvalue)
tagalign = tagmax - len(ktag) + 1
winner = 'Katie'
ikvalue, iqvalue = medianvalues(ikvalue, iqvalue)
if ikvalue > iqvalue:
winner = 'Qt4'
ktotal += ikvalue