Update testlib selftest units
The units that were supposed to have variance were completely off in the test leading to all benchmarks with slight variance being completely flaky. Change-Id: Ib76593813974adee462b3f03be9370d2248d770c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com> Reviewed-by: Jason McDonald <macadder1@gmail.com>bb10
parent
592d79fc83
commit
15ff120b02
|
|
@ -99,13 +99,13 @@ inline bool qCompare
|
|||
// Now check the value. Some variance is allowed, and how much depends on
|
||||
// the measured unit.
|
||||
qreal variance = 0.;
|
||||
if (r1.unit == "msec") {
|
||||
if (r1.unit == "msecs" || r1.unit == "WalltimeMilliseconds") {
|
||||
variance = 0.1;
|
||||
}
|
||||
else if (r1.unit == "instruction reads") {
|
||||
variance = 0.001;
|
||||
}
|
||||
else if (r1.unit == "ticks") {
|
||||
else if (r1.unit == "CPU ticks" || r1.unit == "CPUTicks") {
|
||||
variance = 0.001;
|
||||
}
|
||||
if (variance == 0.) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue