Commit c9260ec3 authored by Daniel Seybold's avatar Daniel Seybold

added 99th and 95th percentile to mergeYCSB script

parent 9dc406b1
Pipeline #86302 passed with stage
in 16 minutes and 43 seconds
......@@ -197,7 +197,35 @@ def mergeOverallData(results, resultFolder, outputFile):
# key is already there, sum up value
mergedInsertDic[metricName] = (mergedInsertDic[metricName] + float(valueItem))/2
else:
mergedInsertDic[metricName] = float(valueItem)
mergedInsertDic[metricName] = float(valueItem)
if "[INSERT], 95thPercentileLatency(us)" in line:
#extract current ops per second
splittedLine = line.split(",")
valueItem = splittedLine[2]
valueItem = valueItem.strip()
#extract timestamp
metricName = splittedLine[1]
if metricName in mergedInsertDic:
# key is already there, sum up value
mergedInsertDic[metricName] = (mergedInsertDic[metricName] + float(valueItem))/2
else:
mergedInsertDic[metricName] = float(valueItem)
if "[INSERT], 99thPercentileLatency(us)" in line:
#extract current ops per second
splittedLine = line.split(",")
valueItem = splittedLine[2]
valueItem = valueItem.strip()
#extract timestamp
metricName = splittedLine[1]
if metricName in mergedInsertDic:
# key is already there, sum up value
mergedInsertDic[metricName] = (mergedInsertDic[metricName] + float(valueItem))/2
else:
mergedInsertDic[metricName] = float(valueItem)
if "[INSERT], MinLatency(us)" in line:
#extract current ops per second
splittedLine = line.split(",")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment