aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qml/librarymetrics_performance/data/grid.1.qml
diff options
context:
space:
mode:
authorChris Adams <chris.adams@jollamobile.com>2013-04-17 11:27:17 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-01 23:58:02 +0200
commit4f50ab594aa2fb1d38981127beca634ad3396489 (patch)
tree91fa983bcf96b7277d7740ac25fc24137c7600fb /tests/benchmarks/qml/librarymetrics_performance/data/grid.1.qml
parent543023c43e347c76abbd4b6c25eea29e673c19dd (diff)
Add fine-grained QML / QtQuick performance benchmarks
This commit adds a series of benchmarks to test the performance of fundamental areas of the QML engine (compilation, instantiation, binding evaluation, positioning) using types provided by the QtQuick QML module. Change-Id: Iecec058c45aea0bd728f03123fa2aa79d6af8efa Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com> Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
Diffstat (limited to 'tests/benchmarks/qml/librarymetrics_performance/data/grid.1.qml')
-rw-r--r--tests/benchmarks/qml/librarymetrics_performance/data/grid.1.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/benchmarks/qml/librarymetrics_performance/data/grid.1.qml b/tests/benchmarks/qml/librarymetrics_performance/data/grid.1.qml
new file mode 100644
index 0000000000..d29d1fad19
--- /dev/null
+++ b/tests/benchmarks/qml/librarymetrics_performance/data/grid.1.qml
@@ -0,0 +1,11 @@
+import QtQuick 2.0
+
+Grid {
+ columns: 3
+ spacing: 2
+ Rectangle { color: "red"; width: 50; height: 50 }
+ Rectangle { color: "green"; width: 20; height: 50 }
+ Rectangle { color: "blue"; width: 50; height: 20 }
+ Rectangle { color: "cyan"; width: 50; height: 50 }
+ Rectangle { color: "magenta"; width: 10; height: 10 }
+}