aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks')
-rw-r--r--tests/benchmarks/benchmarks.pro4
-rw-r--r--tests/benchmarks/creationtime/creationtime.pro11
-rw-r--r--tests/benchmarks/creationtime/data/dependencies.qml9
-rw-r--r--tests/benchmarks/creationtime/tst_creationtime.cpp167
-rw-r--r--tests/benchmarks/objectcount/data/dependencies.qml9
-rw-r--r--tests/benchmarks/objectcount/objectcount.pro11
-rw-r--r--tests/benchmarks/objectcount/tst_objectcount.cpp154
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_abstractbutton.qml16
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_busyindicator.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_button.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_checkbox.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_checkdelegate.qml16
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_combobox.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_container.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_control.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_delaybutton.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_dial.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_dialog.qml28
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_dialogbuttonbox.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_drawer.qml21
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_frame.qml17
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_groupbox.qml18
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_itemdelegate.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_label.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_menu.qml22
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_menuitem.qml17
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_menuseparator.qml13
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_page.qml18
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_pageindicator.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_pane.qml17
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_popup.qml26
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_progressbar.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_radiobutton.qml16
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_radiodelegate.qml17
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_rangeslider.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_roundbutton.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_scrollbar.qml17
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_scrollindicator.qml16
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_scrollview.qml23
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_slider.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_spinbox.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_stackview.qml18
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_swipedelegate.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_swipeview.qml24
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_switch.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_switchdelegate.qml16
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_tabbar.qml23
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_tabbutton.qml16
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_textarea.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_textfield.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_toolbutton.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_toolseparator.qml13
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_tooltip.qml20
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_tumbler.qml15
54 files changed, 0 insertions, 1149 deletions
diff --git a/tests/benchmarks/benchmarks.pro b/tests/benchmarks/benchmarks.pro
deleted file mode 100644
index 7c4ca224..00000000
--- a/tests/benchmarks/benchmarks.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += \
- creationtime \
- objectcount
diff --git a/tests/benchmarks/creationtime/creationtime.pro b/tests/benchmarks/creationtime/creationtime.pro
deleted file mode 100644
index a594027e..00000000
--- a/tests/benchmarks/creationtime/creationtime.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-TARGET = tst_creationtime
-
-QT += qml testlib
-CONFIG += testcase
-macos:CONFIG -= app_bundle
-
-include(../../auto/shared/util.pri)
-
-SOURCES += \
- tst_creationtime.cpp
diff --git a/tests/benchmarks/creationtime/data/dependencies.qml b/tests/benchmarks/creationtime/data/dependencies.qml
deleted file mode 100644
index 130ee37d..00000000
--- a/tests/benchmarks/creationtime/data/dependencies.qml
+++ /dev/null
@@ -1,9 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Universal 2.12
-import Qt.labs.calendar 1.0
-
-Control { }
diff --git a/tests/benchmarks/creationtime/tst_creationtime.cpp b/tests/benchmarks/creationtime/tst_creationtime.cpp
deleted file mode 100644
index 41d7224d..00000000
--- a/tests/benchmarks/creationtime/tst_creationtime.cpp
+++ /dev/null
@@ -1,167 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtQml>
-#include <QtTest>
-
-#include "../../auto/shared/visualtestutil.h"
-
-using namespace QQuickVisualTestUtil;
-
-class tst_CreationTime : public QObject
-{
- Q_OBJECT
-
-private slots:
- void init();
-
- void controls();
- void controls_data();
-
- void fusion();
- void fusion_data();
-
- void imagine();
- void imagine_data();
-
- void material();
- void material_data();
-
- void universal();
- void universal_data();
-
- void calendar();
- void calendar_data();
-
-private:
- QQmlEngine engine;
-};
-
-void tst_CreationTime::init()
-{
- engine.clearComponentCache();
-}
-
-static void doBenchmark(QQmlEngine *engine, const QUrl &url)
-{
- QQmlComponent component(engine);
- component.loadUrl(url);
-
- QObjectList objects;
- objects.reserve(4096);
- QBENCHMARK {
- QObject *object = component.create();
- QVERIFY2(object, qPrintable(component.errorString()));
- objects += object;
- }
- qDeleteAll(objects);
-}
-
-void tst_CreationTime::controls()
-{
- QFETCH(QUrl, url);
- doBenchmark(&engine, url);
-}
-
-void tst_CreationTime::controls_data()
-{
- QTest::addColumn<QUrl>("url");
- addTestRowForEachControl(&engine, "controls", "QtQuick/Controls.2", QStringList() << "ApplicationWindow");
-}
-
-void tst_CreationTime::fusion()
-{
- QFETCH(QUrl, url);
- doBenchmark(&engine, url);
-}
-
-void tst_CreationTime::fusion_data()
-{
- QTest::addColumn<QUrl>("url");
- addTestRowForEachControl(&engine, "controls/fusion", "QtQuick/Controls.2/Fusion", QStringList() << "ApplicationWindow" << "ButtonPanel" << "CheckIndicator" << "RadioIndicator" << "SliderGroove" << "SliderHandle" << "SwitchIndicator");
-}
-
-void tst_CreationTime::imagine()
-{
- QFETCH(QUrl, url);
- doBenchmark(&engine, url);
-}
-
-void tst_CreationTime::imagine_data()
-{
- QTest::addColumn<QUrl>("url");
- addTestRowForEachControl(&engine, "controls/imagine", "QtQuick/Controls.2/Imagine", QStringList() << "ApplicationWindow");
-}
-
-void tst_CreationTime::material()
-{
- QFETCH(QUrl, url);
- doBenchmark(&engine, url);
-}
-
-void tst_CreationTime::material_data()
-{
- QTest::addColumn<QUrl>("url");
- addTestRowForEachControl(&engine, "controls/material", "QtQuick/Controls.2/Material", QStringList() << "ApplicationWindow" << "Ripple" << "SliderHandle" << "CheckIndicator" << "RadioIndicator" << "SwitchIndicator" << "BoxShadow" << "ElevationEffect" << "CursorDelegate");
-}
-
-void tst_CreationTime::universal()
-{
- QFETCH(QUrl, url);
- doBenchmark(&engine, url);
-}
-
-void tst_CreationTime::universal_data()
-{
- QTest::addColumn<QUrl>("url");
- addTestRowForEachControl(&engine, "controls/universal", "QtQuick/Controls.2/Universal", QStringList() << "ApplicationWindow" << "CheckIndicator" << "RadioIndicator" << "SwitchIndicator");
-}
-
-void tst_CreationTime::calendar()
-{
- QFETCH(QUrl, url);
- doBenchmark(&engine, url);
-}
-
-void tst_CreationTime::calendar_data()
-{
- QTest::addColumn<QUrl>("url");
- addTestRowForEachControl(&engine, "calendar", "Qt/labs/calendar");
-}
-
-QTEST_MAIN(tst_CreationTime)
-
-#include "tst_creationtime.moc"
diff --git a/tests/benchmarks/objectcount/data/dependencies.qml b/tests/benchmarks/objectcount/data/dependencies.qml
deleted file mode 100644
index 130ee37d..00000000
--- a/tests/benchmarks/objectcount/data/dependencies.qml
+++ /dev/null
@@ -1,9 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Universal 2.12
-import Qt.labs.calendar 1.0
-
-Control { }
diff --git a/tests/benchmarks/objectcount/objectcount.pro b/tests/benchmarks/objectcount/objectcount.pro
deleted file mode 100644
index 046bfc45..00000000
--- a/tests/benchmarks/objectcount/objectcount.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-TARGET = tst_objectcount
-
-QT += quick testlib core-private
-CONFIG += testcase
-macos:CONFIG -= app_bundle
-
-include(../../auto/shared/util.pri)
-
-SOURCES += \
- tst_objectcount.cpp
diff --git a/tests/benchmarks/objectcount/tst_objectcount.cpp b/tests/benchmarks/objectcount/tst_objectcount.cpp
deleted file mode 100644
index c37469c3..00000000
--- a/tests/benchmarks/objectcount/tst_objectcount.cpp
+++ /dev/null
@@ -1,154 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtTest>
-#include <QtQuick>
-#include <QtCore/private/qhooks_p.h>
-#include <iostream>
-#include "../../auto/shared/visualtestutil.h"
-
-using namespace QQuickVisualTestUtil;
-
-static int qt_verbose = qgetenv("VERBOSE").toInt() != 0;
-
-Q_GLOBAL_STATIC(QObjectList, qt_qobjects)
-
-extern "C" Q_DECL_EXPORT void qt_addQObject(QObject *object)
-{
- qt_qobjects->append(object);
-}
-
-extern "C" Q_DECL_EXPORT void qt_removeQObject(QObject *object)
-{
- qt_qobjects->removeAll(object);
-}
-
-class tst_ObjectCount : public QObject
-{
- Q_OBJECT
-
-private slots:
- void init();
- void cleanup();
-
- void qobjects();
- void qobjects_data();
-
- void qquickitems();
- void qquickitems_data();
-
-private:
- QQmlEngine engine;
-};
-
-void tst_ObjectCount::init()
-{
- qtHookData[QHooks::AddQObject] = reinterpret_cast<quintptr>(&qt_addQObject);
- qtHookData[QHooks::RemoveQObject] = reinterpret_cast<quintptr>(&qt_removeQObject);
-
- // warmup
- QQmlComponent component(&engine);
- component.setData("import QtQuick 2.0; import QtQuick.Controls 2.1; Item { Button {} }", QUrl());
- delete component.create();
-}
-
-void tst_ObjectCount::cleanup()
-{
- qtHookData[QHooks::AddQObject] = 0;
- qtHookData[QHooks::RemoveQObject] = 0;
-}
-
-static void initTestRows(QQmlEngine *engine)
-{
- addTestRowForEachControl(engine, "controls", "QtQuick/Controls.2");
- addTestRowForEachControl(engine, "controls/fusion", "QtQuick/Controls.2/Fusion", QStringList() << "ButtonPanel" << "CheckIndicator" << "RadioIndicator" << "SliderGroove" << "SliderHandle" << "SwitchIndicator");
- addTestRowForEachControl(engine, "controls/imagine", "QtQuick/Controls.2/Imagine");
- addTestRowForEachControl(engine, "controls/material", "QtQuick/Controls.2/Material", QStringList() << "Ripple" << "SliderHandle" << "CheckIndicator" << "RadioIndicator" << "SwitchIndicator" << "BoxShadow" << "ElevationEffect" << "CursorDelegate");
- addTestRowForEachControl(engine, "controls/universal", "QtQuick/Controls.2/Universal", QStringList() << "CheckIndicator" << "RadioIndicator" << "SwitchIndicator");
-}
-
-template <typename T>
-static void doBenchmark(QQmlEngine *engine, const QUrl &url)
-{
- QQmlComponent component(engine);
-
- qt_qobjects->clear();
-
- component.loadUrl(url);
- QScopedPointer<QObject> object(component.create());
- QVERIFY2(object.data(), qPrintable(component.errorString()));
-
- QObjectList objects;
- for (QObject *object : qAsConst(*qt_qobjects())) {
- if (qobject_cast<T *>(object))
- objects += object;
- }
-
- if (qt_verbose) {
- for (QObject *object : objects)
- qInfo() << "\t" << object;
- }
-
- QTest::setBenchmarkResult(objects.count(), QTest::Events);
-}
-
-void tst_ObjectCount::qobjects()
-{
- QFETCH(QUrl, url);
- doBenchmark<QObject>(&engine, url);
-}
-
-void tst_ObjectCount::qobjects_data()
-{
- QTest::addColumn<QUrl>("url");
- initTestRows(&engine);
-}
-
-void tst_ObjectCount::qquickitems()
-{
- QFETCH(QUrl, url);
- doBenchmark<QQuickItem>(&engine, url);
-}
-
-void tst_ObjectCount::qquickitems_data()
-{
- QTest::addColumn<QUrl>("url");
- initTestRows(&engine);
-}
-
-QTEST_MAIN(tst_ObjectCount)
-
-#include "tst_objectcount.moc"
diff --git a/tests/benchmarks/qmlbench/creation/delegates_abstractbutton.qml b/tests/benchmarks/qmlbench/creation/delegates_abstractbutton.qml
deleted file mode 100644
index 02074cb0..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_abstractbutton.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: AbstractButton {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- checkable: index % 2
- checked: index % 2
- down: index % 3
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_busyindicator.qml b/tests/benchmarks/qmlbench/creation/delegates_busyindicator.qml
deleted file mode 100644
index c6e53bcf..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_busyindicator.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: BusyIndicator {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- running: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_button.qml b/tests/benchmarks/qmlbench/creation/delegates_button.qml
deleted file mode 100644
index 5e6cc12f..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_button.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: Button {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "Button"
- down: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_checkbox.qml b/tests/benchmarks/qmlbench/creation/delegates_checkbox.qml
deleted file mode 100644
index 73b18865..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_checkbox.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: CheckBox {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "CheckBox"
- checked: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_checkdelegate.qml b/tests/benchmarks/qmlbench/creation/delegates_checkdelegate.qml
deleted file mode 100644
index b4fde74a..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_checkdelegate.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: CheckDelegate {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "CheckDelegate"
- checked: index % 2
- down: index % 3
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_combobox.qml b/tests/benchmarks/qmlbench/creation/delegates_combobox.qml
deleted file mode 100644
index 6519fc77..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_combobox.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 250
- delegate: ComboBox {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- model: 5
- currentIndex: index % count
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_container.qml b/tests/benchmarks/qmlbench/creation/delegates_container.qml
deleted file mode 100644
index eb684a74..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_container.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: Container {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: 100
- height: 100
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_control.qml b/tests/benchmarks/qmlbench/creation/delegates_control.qml
deleted file mode 100644
index da4263dc..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_control.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: Control {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: 100
- height: 100
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_delaybutton.qml b/tests/benchmarks/qmlbench/creation/delegates_delaybutton.qml
deleted file mode 100644
index ae8aa0b7..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_delaybutton.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: DelayButton {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "DelayButton"
- down: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_dial.qml b/tests/benchmarks/qmlbench/creation/delegates_dial.qml
deleted file mode 100644
index 6fd33c70..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_dial.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 500
- delegate: Dial {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- value: index / root.staticCount
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_dialog.qml b/tests/benchmarks/qmlbench/creation/delegates_dialog.qml
deleted file mode 100644
index 36b1fbe1..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_dialog.qml
+++ /dev/null
@@ -1,28 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 200
- delegate: Item {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: dialog.width
- height: dialog.height
- Dialog {
- id: dialog
- visible: true
- title: "Dialog"
- modal: (index % 100) === 0
- width: parent.width
- height: parent.height
- standardButtons: Dialog.Ok | Dialog.Cancel
- Item {
- implicitWidth: 200
- implicitHeight: 200
- }
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_dialogbuttonbox.qml b/tests/benchmarks/qmlbench/creation/delegates_dialogbuttonbox.qml
deleted file mode 100644
index e5fac0eb..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_dialogbuttonbox.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: DialogButtonBox {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- standardButtons: DialogButtonBox.Ok | DialogButtonBox.Cancel
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_drawer.qml b/tests/benchmarks/qmlbench/creation/delegates_drawer.qml
deleted file mode 100644
index 9c1e74b5..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_drawer.qml
+++ /dev/null
@@ -1,21 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 250
- delegate: Item {
- width: root.width
- height: root.height
- Drawer {
- id: drawer
- visible: true
- position: 1.0
- edge: index % 2 ? Qt.LeftEdge : Qt.RightEdge
- width: root.width / 3
- height: parent.height
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_frame.qml b/tests/benchmarks/qmlbench/creation/delegates_frame.qml
deleted file mode 100644
index 27852898..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_frame.qml
+++ /dev/null
@@ -1,17 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: Frame {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- Item {
- implicitWidth: 100
- implicitHeight: 100
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_groupbox.qml b/tests/benchmarks/qmlbench/creation/delegates_groupbox.qml
deleted file mode 100644
index ccfe2927..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_groupbox.qml
+++ /dev/null
@@ -1,18 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: GroupBox {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- title: "GroupBox"
- Item {
- implicitWidth: 100
- implicitHeight: 100
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_itemdelegate.qml b/tests/benchmarks/qmlbench/creation/delegates_itemdelegate.qml
deleted file mode 100644
index 8c7f67dd..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_itemdelegate.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: ItemDelegate {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "ItemDelegate"
- down: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_label.qml b/tests/benchmarks/qmlbench/creation/delegates_label.qml
deleted file mode 100644
index 3c3e76b1..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_label.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: Label {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "Label"
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_menu.qml b/tests/benchmarks/qmlbench/creation/delegates_menu.qml
deleted file mode 100644
index 1566f40a..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_menu.qml
+++ /dev/null
@@ -1,22 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 200
- delegate: Item {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: menu.width
- height: menu.height
- Menu {
- id: menu
- visible: true
- MenuItem { text: "MenuItem1" }
- MenuItem { text: "MenuItem2" }
- MenuItem { text: "MenuItem3" }
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_menuitem.qml b/tests/benchmarks/qmlbench/creation/delegates_menuitem.qml
deleted file mode 100644
index 5c700707..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_menuitem.qml
+++ /dev/null
@@ -1,17 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: MenuItem {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "MenuItem"
- checkable: index % 2
- checked: index % 2
- down: index % 3
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_menuseparator.qml b/tests/benchmarks/qmlbench/creation/delegates_menuseparator.qml
deleted file mode 100644
index 59abe333..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_menuseparator.qml
+++ /dev/null
@@ -1,13 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: MenuSeparator {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_page.qml b/tests/benchmarks/qmlbench/creation/delegates_page.qml
deleted file mode 100644
index 9c9124dc..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_page.qml
+++ /dev/null
@@ -1,18 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: Page {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: 100
- height: 100
- header: Item { }
- footer: Item { }
- Item { }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_pageindicator.qml b/tests/benchmarks/qmlbench/creation/delegates_pageindicator.qml
deleted file mode 100644
index 37eee037..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_pageindicator.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: PageIndicator {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- count: 5
- currentIndex: index % 5
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_pane.qml b/tests/benchmarks/qmlbench/creation/delegates_pane.qml
deleted file mode 100644
index e811df93..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_pane.qml
+++ /dev/null
@@ -1,17 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: Pane {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- Item {
- implicitWidth: 100
- implicitHeight: 100
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_popup.qml b/tests/benchmarks/qmlbench/creation/delegates_popup.qml
deleted file mode 100644
index 9effd917..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_popup.qml
+++ /dev/null
@@ -1,26 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 500
- delegate: Item {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: popup.width
- height: popup.height
- Popup {
- id: popup
- visible: true
- modal: (index % 100) === 0
- width: parent.width
- height: parent.height
- Item {
- implicitWidth: 100
- implicitHeight: 100
- }
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_progressbar.qml b/tests/benchmarks/qmlbench/creation/delegates_progressbar.qml
deleted file mode 100644
index 4bb773f2..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_progressbar.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: ProgressBar {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- value: index / root.staticCount
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_radiobutton.qml b/tests/benchmarks/qmlbench/creation/delegates_radiobutton.qml
deleted file mode 100644
index 3236835f..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_radiobutton.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: RadioButton {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "RadioButton"
- autoExclusive: false
- checked: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_radiodelegate.qml b/tests/benchmarks/qmlbench/creation/delegates_radiodelegate.qml
deleted file mode 100644
index b6ffe174..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_radiodelegate.qml
+++ /dev/null
@@ -1,17 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: RadioDelegate {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "RadioDelegate"
- autoExclusive: false
- checked: index % 2
- down: index % 3
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_rangeslider.qml b/tests/benchmarks/qmlbench/creation/delegates_rangeslider.qml
deleted file mode 100644
index a595bd7a..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_rangeslider.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: RangeSlider {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- first.value: (index / root.staticCount) * 0.5
- second.value: 0.5 + (index / root.staticCount) * 0.5
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_roundbutton.qml b/tests/benchmarks/qmlbench/creation/delegates_roundbutton.qml
deleted file mode 100644
index 572bf5e9..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_roundbutton.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: RoundButton {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "X"
- down: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_scrollbar.qml b/tests/benchmarks/qmlbench/creation/delegates_scrollbar.qml
deleted file mode 100644
index 2e6fc1fd..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_scrollbar.qml
+++ /dev/null
@@ -1,17 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: ScrollBar {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- height: 100
- size: index / root.staticCount
- pressed: index % 2
- active: true
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_scrollindicator.qml b/tests/benchmarks/qmlbench/creation/delegates_scrollindicator.qml
deleted file mode 100644
index fd9e52e6..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_scrollindicator.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: ScrollIndicator {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- height: 100
- size: index / root.staticCount
- active: true
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_scrollview.qml b/tests/benchmarks/qmlbench/creation/delegates_scrollview.qml
deleted file mode 100644
index 0daa44dd..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_scrollview.qml
+++ /dev/null
@@ -1,23 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 250
- delegate: ScrollView {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: 100
- height: 100
- Item {
- implicitWidth: 200
- implicitHeight: 200
- }
- ScrollBar.vertical.active: true
- ScrollBar.vertical.pressed: index % 3 === 1
- ScrollBar.horizontal.active: true
- ScrollBar.horizontal.pressed: index % 3 === 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_slider.qml b/tests/benchmarks/qmlbench/creation/delegates_slider.qml
deleted file mode 100644
index 44dac819..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_slider.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: Slider {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- value: index / root.staticCount
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_spinbox.qml b/tests/benchmarks/qmlbench/creation/delegates_spinbox.qml
deleted file mode 100644
index 90695102..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_spinbox.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 250
- delegate: SpinBox {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- value: index / root.staticCount * to
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_stackview.qml b/tests/benchmarks/qmlbench/creation/delegates_stackview.qml
deleted file mode 100644
index e2644aef..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_stackview.qml
+++ /dev/null
@@ -1,18 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: StackView {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: 100
- height: 100
- initialItem: Item {
- focus: StackView.status === StackView.Active
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_swipedelegate.qml b/tests/benchmarks/qmlbench/creation/delegates_swipedelegate.qml
deleted file mode 100644
index 752dc37b..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_swipedelegate.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: SwitchDelegate {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "SwipeDelegate"
- down: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_swipeview.qml b/tests/benchmarks/qmlbench/creation/delegates_swipeview.qml
deleted file mode 100644
index 0a922343..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_swipeview.qml
+++ /dev/null
@@ -1,24 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: SwipeView {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: 100
- height: 100
- Item {
- focus: SwipeView.isCurrentItem
- }
- Item {
- focus: SwipeView.isCurrentItem
- }
- Item {
- focus: SwipeView.isCurrentItem
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_switch.qml b/tests/benchmarks/qmlbench/creation/delegates_switch.qml
deleted file mode 100644
index 9381342d..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_switch.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: Switch {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "Switch"
- checked: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_switchdelegate.qml b/tests/benchmarks/qmlbench/creation/delegates_switchdelegate.qml
deleted file mode 100644
index f41281fa..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_switchdelegate.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: SwitchDelegate {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "SwitchDelegate"
- checked: index % 2
- down: index % 3
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_tabbar.qml b/tests/benchmarks/qmlbench/creation/delegates_tabbar.qml
deleted file mode 100644
index 95bb7291..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_tabbar.qml
+++ /dev/null
@@ -1,23 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 250
- delegate: TabBar {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- currentIndex: index / root.staticCount * count
- TabButton {
- text: "Tab1"
- }
- TabButton {
- text: "Tab2"
- }
- TabButton {
- text: "Tab3"
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_tabbutton.qml b/tests/benchmarks/qmlbench/creation/delegates_tabbutton.qml
deleted file mode 100644
index dc549a3a..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_tabbutton.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: TabButton {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "TabButton"
- checked: index % 2
- down: index % 3
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_textarea.qml b/tests/benchmarks/qmlbench/creation/delegates_textarea.qml
deleted file mode 100644
index ab383ad4..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_textarea.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 500
- delegate: TextArea {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "Text\nArea"
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_textfield.qml b/tests/benchmarks/qmlbench/creation/delegates_textfield.qml
deleted file mode 100644
index 32f31fe8..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_textfield.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: TextField {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "TextField"
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_toolbutton.qml b/tests/benchmarks/qmlbench/creation/delegates_toolbutton.qml
deleted file mode 100644
index 38e9a59f..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_toolbutton.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: ToolButton {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "ToolButton"
- down: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_toolseparator.qml b/tests/benchmarks/qmlbench/creation/delegates_toolseparator.qml
deleted file mode 100644
index e3db91f8..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_toolseparator.qml
+++ /dev/null
@@ -1,13 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: ToolSeparator {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_tooltip.qml b/tests/benchmarks/qmlbench/creation/delegates_tooltip.qml
deleted file mode 100644
index f8e7a283..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_tooltip.qml
+++ /dev/null
@@ -1,20 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 500
- delegate: Item {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: tooltip.width
- height: tooltip.height
- ToolTip {
- id: tooltip
- visible: true
- text: "ToolTip"
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_tumbler.qml b/tests/benchmarks/qmlbench/creation/delegates_tumbler.qml
deleted file mode 100644
index 4af07b7f..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_tumbler.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 250
- delegate: Tumbler {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- model: 5
- currentIndex: index % count
- }
-}