summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/declarative/creation/tst_creation.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-03-12 05:30:17 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-03-12 05:30:17 (GMT)
commite16cc0cf7e50a63674a7e36169d0844af6ddb2ce (patch)
tree04a3f8466c2985a7be19913be1d1547f6e117432 /tests/benchmarks/declarative/creation/tst_creation.cpp
parent58fcfaecd1ce82ef19feb25eca8b3bf2f3f3d4c1 (diff)
downloadQt-e16cc0cf7e50a63674a7e36169d0844af6ddb2ce.zip
Qt-e16cc0cf7e50a63674a7e36169d0844af6ddb2ce.tar.gz
Qt-e16cc0cf7e50a63674a7e36169d0844af6ddb2ce.tar.bz2
Optimization: Use linked list for context children
Diffstat (limited to 'tests/benchmarks/declarative/creation/tst_creation.cpp')
-rw-r--r--tests/benchmarks/declarative/creation/tst_creation.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/benchmarks/declarative/creation/tst_creation.cpp b/tests/benchmarks/declarative/creation/tst_creation.cpp
index 5b0004f..47e4bb7 100644
--- a/tests/benchmarks/declarative/creation/tst_creation.cpp
+++ b/tests/benchmarks/declarative/creation/tst_creation.cpp
@@ -47,6 +47,7 @@
#include <QGraphicsScene>
#include <QGraphicsItem>
#include <QDeclarativeItem>
+#include <QDeclarativeContext>
#include <private/qobject_p.h>
#ifdef Q_OS_SYMBIAN
@@ -67,6 +68,8 @@ private slots:
void qobject_qmltype();
void qobject_alloc();
+ void qdeclarativecontext();
+
void objects_qmltype_data();
void objects_qmltype();
@@ -150,6 +153,14 @@ void tst_creation::qobject_alloc()
}
}
+void tst_creation::qdeclarativecontext()
+{
+ QBENCHMARK {
+ QDeclarativeContext *ctxt = new QDeclarativeContext(&engine);
+ delete ctxt;
+ }
+}
+
void tst_creation::objects_qmltype_data()
{
QTest::addColumn<QByteArray>("type");