From 7efce5d5100dc0fddba36fba2ecb5a6c5e9cae37 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Wed, 22 May 2019 15:00:58 +0200 Subject: Add a bench-mark for QDate's isValid() and daysInMonth() The two perform related calculations, so test them together. RESULT : tst_QDate::monthLengths(): 0.33 msecs per iteration (total: 87, iterations: 256) Change-Id: I86b36a9182b00c0a1f40e858ed3e7812434974c4 Reviewed-by: Volker Hilsheimer Reviewed-by: Thiago Macieira --- tests/benchmarks/corelib/tools/qdate/qdate.pro | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/benchmarks/corelib/tools/qdate/qdate.pro (limited to 'tests/benchmarks/corelib/tools/qdate/qdate.pro') diff --git a/tests/benchmarks/corelib/tools/qdate/qdate.pro b/tests/benchmarks/corelib/tools/qdate/qdate.pro new file mode 100644 index 0000000000..a655917135 --- /dev/null +++ b/tests/benchmarks/corelib/tools/qdate/qdate.pro @@ -0,0 +1,4 @@ +TARGET = tst_bench_qdate +QT = core testlib + +SOURCES += tst_bench_qdate.cpp -- cgit v1.2.3