aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/benchmarker/benchmarker-main.cpp6
-rw-r--r--tests/benchmarker/commandlineparser.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/benchmarker/benchmarker-main.cpp b/tests/benchmarker/benchmarker-main.cpp
index c72e7c57d..264f754ed 100644
--- a/tests/benchmarker/benchmarker-main.cpp
+++ b/tests/benchmarker/benchmarker-main.cpp
@@ -41,13 +41,13 @@ static bool hasRegression = false;
static int relativeChange(qint64 oldVal, qint64 newVal)
{
- return newVal == 0 ? 0 : (newVal - oldVal) * 100 / oldVal;
+ return newVal == 0 ? 0 : (newVal - oldVal) * 1000 / oldVal;
}
static QByteArray relativeChangeString(int change)
{
- QByteArray changeString = QByteArray::number(change);
- changeString += " %";
+ QByteArray changeString = QByteArray::number(change / 10);
+ changeString += " % (" + QByteArray::number(change) + " ‰)";
if (change > 0)
changeString.prepend('+');
return changeString;
diff --git a/tests/benchmarker/commandlineparser.cpp b/tests/benchmarker/commandlineparser.cpp
index 0bbd9d523..098d6fb22 100644
--- a/tests/benchmarker/commandlineparser.cpp
+++ b/tests/benchmarker/commandlineparser.cpp
@@ -111,11 +111,11 @@ void CommandLineParser::parse()
parser.helpText());
}
}
- m_regressionThreshold = 5;
+ m_regressionThreshold = 50;
if (parser.isSet(thresholdOption)) {
bool ok = true;
const QString rawThresholdValue = parser.value(thresholdOption);
- m_regressionThreshold = rawThresholdValue.toInt(&ok);
+ m_regressionThreshold = 10 * rawThresholdValue.toInt(&ok);
if (!ok)
throwException(thresholdOption.names().constFirst(),
rawThresholdValue,