diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-12 05:30:17 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-12 05:30:17 (GMT) |
commit | e16cc0cf7e50a63674a7e36169d0844af6ddb2ce (patch) | |
tree | 04a3f8466c2985a7be19913be1d1547f6e117432 /tests/benchmarks/declarative/creation/tst_creation.cpp | |
parent | 58fcfaecd1ce82ef19feb25eca8b3bf2f3f3d4c1 (diff) | |
download | Qt-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.cpp | 11 |
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"); |