Remove unnecessary adding of test rows in the QtDBus type benchmark

No need to loop twice to add the "native" entries, since they are added
by the helper function anyway.

Change-Id: I9caabc6fc4973a90b483840815769b1351947a89
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
Thiago Macieira 2014-12-11 17:38:48 -08:00
parent 741dd3da33
commit 91ae988b5c

View File

@ -57,29 +57,24 @@ void tst_QDBusType::benchmarkSignature_data()
QTest::addColumn<QString>("data");
QTest::addColumn<bool>("useNative");
for (int loopCount = 0; loopCount < 2; ++loopCount) {
bool useNative = loopCount;
QByteArray prefix = useNative ? "native-" : "";
benchmarkAddRow("single-invalid", "~");
benchmarkAddRow("single-invalid-array", "a~");
benchmarkAddRow("single-invalid-struct", "(.)");
benchmarkAddRow("single-invalid", "~");
benchmarkAddRow("single-invalid-array", "a~");
benchmarkAddRow("single-invalid-struct", "(.)");
benchmarkAddRow("single-char", "b");
benchmarkAddRow("single-array", "as");
benchmarkAddRow("single-simplestruct", "(y)");
benchmarkAddRow("single-simpledict", "a{sv}");
benchmarkAddRow("single-complexdict", "a{s(aya{io})}");
benchmarkAddRow("single-char", "b");
benchmarkAddRow("single-array", "as");
benchmarkAddRow("single-simplestruct", "(y)");
benchmarkAddRow("single-simpledict", "a{sv}");
benchmarkAddRow("single-complexdict", "a{s(aya{io})}");
benchmarkAddRow("multiple-char", "ssg");
benchmarkAddRow("multiple-arrays", "asasay");
benchmarkAddRow("multiple-char", "ssg");
benchmarkAddRow("multiple-arrays", "asasay");
benchmarkAddRow("struct-missingclose", "(ayyyy");
benchmarkAddRow("longstruct", "(yyyyyyayasy)");
benchmarkAddRow("invalid-longstruct", "(yyyyyyayas.y)");
benchmarkAddRow("complexstruct", "(y(aasay)oga{sv})");
benchmarkAddRow("multiple-simple-structs", "(y)(y)(y)");
}
benchmarkAddRow("struct-missingclose", "(ayyyy");
benchmarkAddRow("longstruct", "(yyyyyyayasy)");
benchmarkAddRow("invalid-longstruct", "(yyyyyyayas.y)");
benchmarkAddRow("complexstruct", "(y(aasay)oga{sv})");
benchmarkAddRow("multiple-simple-structs", "(y)(y)(y)");
}
void tst_QDBusType::benchmarkSignature()