path: root/tests/benchmarks/qmlbench/creation/delegates_menuseparator.qml
diff options
authorJ-P Nurmi <jpnurmi@qt.io>2018-01-04 11:02:38 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2018-01-05 09:41:01 +0000
commit55522df46edd295a65edd32e0ca7d32408ab6de4 (patch)
tree3279e91b72267328bc5e7ef322ac272cab4ba211 /tests/benchmarks/qmlbench/creation/delegates_menuseparator.qml
parentaa9308d1d172a51a3e4356b8831b9f28fc68086e (diff)
Add creation benchmarks for qmlbench
The qmlbench repo has benchmarks only for a subset of controls. They are part of a larger collection of benchmarks that are run periodically, for which the results are collected to Grafana. We have limited resources there, so we don't want to overload it with benchmarks for every single control type. However, for our own benchmarking purposes it is useful to be able to easily benchmark all of them. Change-Id: I920e4c07bce8356e5d9f41d4c1d6ae43e37bb13e Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/benchmarks/qmlbench/creation/delegates_menuseparator.qml')
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/benchmarks/qmlbench/creation/delegates_menuseparator.qml b/tests/benchmarks/qmlbench/creation/delegates_menuseparator.qml
new file mode 100644
index 00000000..8322a0c5
--- /dev/null
+++ b/tests/benchmarks/qmlbench/creation/delegates_menuseparator.qml
@@ -0,0 +1,13 @@
+import QtQuick 2.0
+import QmlBench 1.0
+import QtQuick.Controls 2.1
+CreationBenchmark {
+ id: root
+ count: 20
+ staticCount: 2000
+ delegate: MenuSeparator {
+ x: QmlBench.getRandom() * root.width - width
+ y: QmlBench.getRandom() * root.height - height
+ }