From 93e845e00b814d17fcee9fe0bd182639dc1a1753 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Tue, 14 Mar 2017 16:38:51 +0100 Subject: Rearrange benchmarks We now have a slightly better setup: benchmarks/ (root) auto/ (all benchmarks for regression testing purposes) changes/ (old changes benchmarks, may be subject to further change) creation/ ... many subdirs, per module or per type in some cases js/ (old js tests) manual/ (useful tests that are probably not useful in an automated way) gputhroughput/ (useful for HW evaluation) This should let us explicitly run tests that we want to run in an automated fashion (good), and provides us with a bit more organization to allow for much more tests without looking like a disorganized mess. No new tests as yet, but they will come... Change-Id: I93d04fca84a7f0f10999691ebe0719c80265c852 Reviewed-by: Gunnar Sletta --- benchmark/butterfly-collapsed.png | Bin 1966 -> 0 bytes benchmark/butterfly-half.png | Bin 2730 -> 0 bytes benchmark/butterfly-wide.png | Bin 4151 -> 0 bytes benchmark/changes/changing_over_isolated.qml | 44 ------------------ .../changes/changing_over_isolated_with_clip.qml | 45 ------------------ .../changing_over_isolated_with_clip_rotated.qml | 46 ------------------- benchmark/changes/changing_text_oneofmany.qml | 31 ------------- benchmark/changes/changing_textcanvas.qml | 34 -------------- benchmark/changes/changing_texts.qml | 20 -------- benchmark/creation/delegates_blendedrect.qml | 27 ----------- benchmark/creation/delegates_buttoncontrol.qml | 26 ----------- benchmark/creation/delegates_buttoncontrol2.qml | 26 ----------- benchmark/creation/delegates_column.qml | 49 -------------------- benchmark/creation/delegates_columnlayout.qml | 50 -------------------- benchmark/creation/delegates_complex.qml | 44 ------------------ benchmark/creation/delegates_flow.qml | 49 -------------------- benchmark/creation/delegates_grid.qml | 49 -------------------- benchmark/creation/delegates_gridlayout.qml | 51 --------------------- benchmark/creation/delegates_image.qml | 34 -------------- benchmark/creation/delegates_item.qml | 26 ----------- benchmark/creation/delegates_item_empty.qml | 22 --------- .../creation/delegates_item_empty_jscreation.qml | 34 -------------- benchmark/creation/delegates_labelcontrol.qml | 26 ----------- benchmark/creation/delegates_labelcontrol2.qml | 26 ----------- benchmark/creation/delegates_longtext.qml | 28 ----------- benchmark/creation/delegates_longtext_chinese.qml | 29 ------------ benchmark/creation/delegates_qobject.qml | 27 ----------- benchmark/creation/delegates_rect.qml | 27 ----------- .../creation/delegates_rect_anchor_parent.qml | 30 ------------ benchmark/creation/delegates_rect_size_parent.qml | 31 ------------- benchmark/creation/delegates_row.qml | 49 -------------------- benchmark/creation/delegates_rowlayout.qml | 50 -------------------- benchmark/creation/delegates_script.qml | 31 ------------- benchmark/creation/delegates_text.qml | 27 ----------- benchmark/creation/delegates_text_chinese.qml | 27 ----------- .../creation/delegates_text_nativerendering.qml | 27 ----------- benchmark/creation/delegates_text_plain.qml | 27 ----------- benchmark/creation/delegates_text_richtext.qml | 27 ----------- benchmark/creation/delegates_text_styled.qml | 27 ----------- benchmark/creation/delegates_textedit.qml | 26 ----------- benchmark/creation/delegates_textinput.qml | 26 ----------- benchmark/creation/delegates_tworects.qml | 32 ------------- benchmark/gputhroughput/blendedrect.qml | 16 ------- benchmark/gputhroughput/blendedtexture.qml | 18 -------- benchmark/gputhroughput/drawcalls.qml | 34 -------------- benchmark/gputhroughput/gaussblur.qml | 35 -------------- benchmark/gputhroughput/opaquerect.qml | 16 ------- benchmark/gputhroughput/opaquetexture.qml | 24 ---------- benchmark/grapes.jpg | Bin 304492 -> 0 bytes benchmark/images/moving-images-animations.qml | 29 ------------ benchmark/images/moving-images-animators.qml | 29 ------------ benchmark/images/moving-images-script.qml | 33 ------------- benchmark/js/fib10.qml | 30 ------------ benchmark/js/sum10k.qml | 30 ------------ .../comparison/moving-images-animations.qml | 29 ++++++++++++ .../comparison/moving-images-animators.qml | 29 ++++++++++++ .../animations/comparison/moving-images-script.qml | 33 +++++++++++++ benchmarks/auto/changes/changing_over_isolated.qml | 44 ++++++++++++++++++ .../changes/changing_over_isolated_with_clip.qml | 45 ++++++++++++++++++ .../changing_over_isolated_with_clip_rotated.qml | 46 +++++++++++++++++++ .../auto/changes/changing_text_oneofmany.qml | 31 +++++++++++++ benchmarks/auto/changes/changing_textcanvas.qml | 34 ++++++++++++++ benchmarks/auto/changes/changing_texts.qml | 20 ++++++++ .../creation/controls/delegates_buttoncontrol.qml | 26 +++++++++++ .../creation/controls/delegates_buttoncontrol2.qml | 26 +++++++++++ .../creation/controls/delegates_labelcontrol.qml | 26 +++++++++++ .../creation/controls/delegates_labelcontrol2.qml | 26 +++++++++++ .../auto/creation/examples/delegates_complex.qml | 44 ++++++++++++++++++ .../auto/creation/examples/delegates_tworects.qml | 32 +++++++++++++ .../auto/creation/layouts/delegates_column.qml | 49 ++++++++++++++++++++ .../creation/layouts/delegates_columnlayout.qml | 50 ++++++++++++++++++++ .../auto/creation/layouts/delegates_flow.qml | 49 ++++++++++++++++++++ .../auto/creation/layouts/delegates_grid.qml | 49 ++++++++++++++++++++ .../auto/creation/layouts/delegates_gridlayout.qml | 51 +++++++++++++++++++++ benchmarks/auto/creation/layouts/delegates_row.qml | 49 ++++++++++++++++++++ .../auto/creation/layouts/delegates_rowlayout.qml | 50 ++++++++++++++++++++ .../auto/creation/quick.image/delegates_image.qml | 34 ++++++++++++++ .../creation/quick.text/delegates_longtext.qml | 28 +++++++++++ .../quick.text/delegates_longtext_chinese.qml | 29 ++++++++++++ .../auto/creation/quick.text/delegates_text.qml | 27 +++++++++++ .../creation/quick.text/delegates_text_chinese.qml | 27 +++++++++++ .../quick.text/delegates_text_nativerendering.qml | 27 +++++++++++ .../creation/quick.text/delegates_text_plain.qml | 27 +++++++++++ .../quick.text/delegates_text_richtext.qml | 27 +++++++++++ .../creation/quick.text/delegates_text_styled.qml | 27 +++++++++++ .../creation/quick.text/delegates_textedit.qml | 26 +++++++++++ .../creation/quick.text/delegates_textinput.qml | 26 +++++++++++ .../auto/creation/quick/delegates_blendedrect.qml | 27 +++++++++++ benchmarks/auto/creation/quick/delegates_item.qml | 26 +++++++++++ .../auto/creation/quick/delegates_item_empty.qml | 22 +++++++++ .../quick/delegates_item_empty_jscreation.qml | 34 ++++++++++++++ .../auto/creation/quick/delegates_qobject.qml | 27 +++++++++++ benchmarks/auto/creation/quick/delegates_rect.qml | 27 +++++++++++ .../quick/delegates_rect_anchor_parent.qml | 30 ++++++++++++ .../creation/quick/delegates_rect_size_parent.qml | 31 +++++++++++++ .../auto/creation/quick/delegates_script.qml | 31 +++++++++++++ benchmarks/auto/js/fib10.qml | 30 ++++++++++++ benchmarks/auto/js/sum10k.qml | 30 ++++++++++++ benchmarks/manual/gputhroughput/blendedrect.qml | 16 +++++++ benchmarks/manual/gputhroughput/blendedtexture.qml | 18 ++++++++ benchmarks/manual/gputhroughput/drawcalls.qml | 34 ++++++++++++++ benchmarks/manual/gputhroughput/gaussblur.qml | 35 ++++++++++++++ benchmarks/manual/gputhroughput/grapes.jpg | Bin 0 -> 304492 bytes benchmarks/manual/gputhroughput/opaquerect.qml | 16 +++++++ benchmarks/manual/gputhroughput/opaquetexture.qml | 24 ++++++++++ shared/butterfly-collapsed.png | Bin 0 -> 1966 bytes shared/butterfly-half.png | Bin 0 -> 2730 bytes shared/butterfly-wide.png | Bin 0 -> 4151 bytes 108 files changed, 1601 insertions(+), 1601 deletions(-) delete mode 100644 benchmark/butterfly-collapsed.png delete mode 100644 benchmark/butterfly-half.png delete mode 100644 benchmark/butterfly-wide.png delete mode 100644 benchmark/changes/changing_over_isolated.qml delete mode 100644 benchmark/changes/changing_over_isolated_with_clip.qml delete mode 100644 benchmark/changes/changing_over_isolated_with_clip_rotated.qml delete mode 100644 benchmark/changes/changing_text_oneofmany.qml delete mode 100644 benchmark/changes/changing_textcanvas.qml delete mode 100644 benchmark/changes/changing_texts.qml delete mode 100644 benchmark/creation/delegates_blendedrect.qml delete mode 100644 benchmark/creation/delegates_buttoncontrol.qml delete mode 100644 benchmark/creation/delegates_buttoncontrol2.qml delete mode 100644 benchmark/creation/delegates_column.qml delete mode 100644 benchmark/creation/delegates_columnlayout.qml delete mode 100644 benchmark/creation/delegates_complex.qml delete mode 100644 benchmark/creation/delegates_flow.qml delete mode 100644 benchmark/creation/delegates_grid.qml delete mode 100644 benchmark/creation/delegates_gridlayout.qml delete mode 100644 benchmark/creation/delegates_image.qml delete mode 100644 benchmark/creation/delegates_item.qml delete mode 100644 benchmark/creation/delegates_item_empty.qml delete mode 100644 benchmark/creation/delegates_item_empty_jscreation.qml delete mode 100644 benchmark/creation/delegates_labelcontrol.qml delete mode 100644 benchmark/creation/delegates_labelcontrol2.qml delete mode 100644 benchmark/creation/delegates_longtext.qml delete mode 100644 benchmark/creation/delegates_longtext_chinese.qml delete mode 100644 benchmark/creation/delegates_qobject.qml delete mode 100644 benchmark/creation/delegates_rect.qml delete mode 100644 benchmark/creation/delegates_rect_anchor_parent.qml delete mode 100644 benchmark/creation/delegates_rect_size_parent.qml delete mode 100644 benchmark/creation/delegates_row.qml delete mode 100644 benchmark/creation/delegates_rowlayout.qml delete mode 100644 benchmark/creation/delegates_script.qml delete mode 100644 benchmark/creation/delegates_text.qml delete mode 100644 benchmark/creation/delegates_text_chinese.qml delete mode 100644 benchmark/creation/delegates_text_nativerendering.qml delete mode 100644 benchmark/creation/delegates_text_plain.qml delete mode 100644 benchmark/creation/delegates_text_richtext.qml delete mode 100644 benchmark/creation/delegates_text_styled.qml delete mode 100644 benchmark/creation/delegates_textedit.qml delete mode 100644 benchmark/creation/delegates_textinput.qml delete mode 100644 benchmark/creation/delegates_tworects.qml delete mode 100644 benchmark/gputhroughput/blendedrect.qml delete mode 100644 benchmark/gputhroughput/blendedtexture.qml delete mode 100644 benchmark/gputhroughput/drawcalls.qml delete mode 100644 benchmark/gputhroughput/gaussblur.qml delete mode 100644 benchmark/gputhroughput/opaquerect.qml delete mode 100644 benchmark/gputhroughput/opaquetexture.qml delete mode 100755 benchmark/grapes.jpg delete mode 100644 benchmark/images/moving-images-animations.qml delete mode 100644 benchmark/images/moving-images-animators.qml delete mode 100644 benchmark/images/moving-images-script.qml delete mode 100644 benchmark/js/fib10.qml delete mode 100644 benchmark/js/sum10k.qml create mode 100644 benchmarks/auto/animations/comparison/moving-images-animations.qml create mode 100644 benchmarks/auto/animations/comparison/moving-images-animators.qml create mode 100644 benchmarks/auto/animations/comparison/moving-images-script.qml create mode 100644 benchmarks/auto/changes/changing_over_isolated.qml create mode 100644 benchmarks/auto/changes/changing_over_isolated_with_clip.qml create mode 100644 benchmarks/auto/changes/changing_over_isolated_with_clip_rotated.qml create mode 100644 benchmarks/auto/changes/changing_text_oneofmany.qml create mode 100644 benchmarks/auto/changes/changing_textcanvas.qml create mode 100644 benchmarks/auto/changes/changing_texts.qml create mode 100644 benchmarks/auto/creation/controls/delegates_buttoncontrol.qml create mode 100644 benchmarks/auto/creation/controls/delegates_buttoncontrol2.qml create mode 100644 benchmarks/auto/creation/controls/delegates_labelcontrol.qml create mode 100644 benchmarks/auto/creation/controls/delegates_labelcontrol2.qml create mode 100644 benchmarks/auto/creation/examples/delegates_complex.qml create mode 100644 benchmarks/auto/creation/examples/delegates_tworects.qml create mode 100644 benchmarks/auto/creation/layouts/delegates_column.qml create mode 100644 benchmarks/auto/creation/layouts/delegates_columnlayout.qml create mode 100644 benchmarks/auto/creation/layouts/delegates_flow.qml create mode 100644 benchmarks/auto/creation/layouts/delegates_grid.qml create mode 100644 benchmarks/auto/creation/layouts/delegates_gridlayout.qml create mode 100644 benchmarks/auto/creation/layouts/delegates_row.qml create mode 100644 benchmarks/auto/creation/layouts/delegates_rowlayout.qml create mode 100644 benchmarks/auto/creation/quick.image/delegates_image.qml create mode 100644 benchmarks/auto/creation/quick.text/delegates_longtext.qml create mode 100644 benchmarks/auto/creation/quick.text/delegates_longtext_chinese.qml create mode 100644 benchmarks/auto/creation/quick.text/delegates_text.qml create mode 100644 benchmarks/auto/creation/quick.text/delegates_text_chinese.qml create mode 100644 benchmarks/auto/creation/quick.text/delegates_text_nativerendering.qml create mode 100644 benchmarks/auto/creation/quick.text/delegates_text_plain.qml create mode 100644 benchmarks/auto/creation/quick.text/delegates_text_richtext.qml create mode 100644 benchmarks/auto/creation/quick.text/delegates_text_styled.qml create mode 100644 benchmarks/auto/creation/quick.text/delegates_textedit.qml create mode 100644 benchmarks/auto/creation/quick.text/delegates_textinput.qml create mode 100644 benchmarks/auto/creation/quick/delegates_blendedrect.qml create mode 100644 benchmarks/auto/creation/quick/delegates_item.qml create mode 100644 benchmarks/auto/creation/quick/delegates_item_empty.qml create mode 100644 benchmarks/auto/creation/quick/delegates_item_empty_jscreation.qml create mode 100644 benchmarks/auto/creation/quick/delegates_qobject.qml create mode 100644 benchmarks/auto/creation/quick/delegates_rect.qml create mode 100644 benchmarks/auto/creation/quick/delegates_rect_anchor_parent.qml create mode 100644 benchmarks/auto/creation/quick/delegates_rect_size_parent.qml create mode 100644 benchmarks/auto/creation/quick/delegates_script.qml create mode 100644 benchmarks/auto/js/fib10.qml create mode 100644 benchmarks/auto/js/sum10k.qml create mode 100644 benchmarks/manual/gputhroughput/blendedrect.qml create mode 100644 benchmarks/manual/gputhroughput/blendedtexture.qml create mode 100644 benchmarks/manual/gputhroughput/drawcalls.qml create mode 100644 benchmarks/manual/gputhroughput/gaussblur.qml create mode 100755 benchmarks/manual/gputhroughput/grapes.jpg create mode 100644 benchmarks/manual/gputhroughput/opaquerect.qml create mode 100644 benchmarks/manual/gputhroughput/opaquetexture.qml create mode 100644 shared/butterfly-collapsed.png create mode 100644 shared/butterfly-half.png create mode 100644 shared/butterfly-wide.png diff --git a/benchmark/butterfly-collapsed.png b/benchmark/butterfly-collapsed.png deleted file mode 100644 index 93f8933..0000000 Binary files a/benchmark/butterfly-collapsed.png and /dev/null differ diff --git a/benchmark/butterfly-half.png b/benchmark/butterfly-half.png deleted file mode 100644 index d601f17..0000000 Binary files a/benchmark/butterfly-half.png and /dev/null differ diff --git a/benchmark/butterfly-wide.png b/benchmark/butterfly-wide.png deleted file mode 100644 index 0899407..0000000 Binary files a/benchmark/butterfly-wide.png and /dev/null differ diff --git a/benchmark/changes/changing_over_isolated.qml b/benchmark/changes/changing_over_isolated.qml deleted file mode 100644 index ab18ecb..0000000 --- a/benchmark/changes/changing_over_isolated.qml +++ /dev/null @@ -1,44 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 1000; - property int staticCount: 2000 - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 2347; loops: Animation.Infinite } - - Item { - anchors.fill: parent - clip: true - Repeater { - id: repeater - model: root.count - - Rectangle { - color: Qt.hsla(Math.random(), 0.9, 0.4) - width: 20 - height: 20 - x: Math.random() * root.width - y: Math.random() * root.height - - Text { - color: "white" - text: "X" - anchors.centerIn: parent - font.pixelSize: 10 - } - } - } - } - - Item { - anchors.fill: parent - clip: true - Text { - anchors.centerIn: parent - text: "test: " + root.t; - } - } - -} diff --git a/benchmark/changes/changing_over_isolated_with_clip.qml b/benchmark/changes/changing_over_isolated_with_clip.qml deleted file mode 100644 index cb7a45e..0000000 --- a/benchmark/changes/changing_over_isolated_with_clip.qml +++ /dev/null @@ -1,45 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 100; - property int staticCount: 2000 - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 2347; loops: Animation.Infinite } - - Item { - anchors.fill: parent - clip: true - Repeater { - id: repeater - model: root.count - - Rectangle { - color: Qt.hsla(Math.random(), 0.9, 0.4) - width: 20 - height: 20 - x: Math.random() * root.width - y: Math.random() * root.height - clip: true - - Text { - color: "white" - text: "X" - anchors.centerIn: parent - font.pixelSize: 10 - } - } - } - } - - Item { - anchors.fill: parent - clip: true - Text { - anchors.centerIn: parent - text: "test: " + root.t; - } - } - -} diff --git a/benchmark/changes/changing_over_isolated_with_clip_rotated.qml b/benchmark/changes/changing_over_isolated_with_clip_rotated.qml deleted file mode 100644 index 7c2d085..0000000 --- a/benchmark/changes/changing_over_isolated_with_clip_rotated.qml +++ /dev/null @@ -1,46 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 1000; - property int staticCount: 2000 - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 2347; loops: Animation.Infinite } - - Item { - anchors.fill: parent - clip: true - Repeater { - id: repeater - model: root.count - - Rectangle { - color: Qt.hsla(Math.random(), 0.9, 0.4) - width: 20 - height: 20 - clip: true - rotation: 10 - x: Math.random() * root.width - y: Math.random() * root.height - - Text { - color: "white" - text: "X" - anchors.centerIn: parent - font.pixelSize: 10 - } - } - } - } - - Item { - anchors.fill: parent - clip: true - Text { - anchors.centerIn: parent - text: "test: " + root.t; - } - } - -} diff --git a/benchmark/changes/changing_text_oneofmany.qml b/benchmark/changes/changing_text_oneofmany.qml deleted file mode 100644 index 137b828..0000000 --- a/benchmark/changes/changing_text_oneofmany.qml +++ /dev/null @@ -1,31 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 100 - property int staticCount: 1000; - - property real t; - NumberAnimation on t { from: 0; to: 1000; duration: 1000; loops: Animation.Infinite } - - Grid { - anchors.fill: parent - columns: root.width / 100 - spacing: 1 - Repeater { - id: repeater - model: root.count - Rectangle { - width: 100 - height: 20 - color: "steelblue" - radius: 4 - Text { x: 0; text: "1"; color: "red" } - Text { x: 10; text: "2"; color: "blue" } - Text { x: 20; text: "3"; color: "lightsteelblue" } - Text { x: 30; text: "-"; color: "white" } - Text { x: 40; text: index == count - 1 ? Math.round( t ) : "[]"; } - } - } - } -} diff --git a/benchmark/changes/changing_textcanvas.qml b/benchmark/changes/changing_textcanvas.qml deleted file mode 100644 index 58094e1..0000000 --- a/benchmark/changes/changing_textcanvas.qml +++ /dev/null @@ -1,34 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 100; - property int staticCount: 1000; - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 2347; loops: Animation.Infinite } - - Repeater { - id: repeater - model: root.count - Canvas { - - x: Math.floor( Math.random() * root.width ) - y: Math.floor( Math.random() * root.height ) - - width: 40 - height: 15 - - property real t: root.t; - onTChanged: requestPaint(); - - onPaint: { - var ctx = getContext("2d"); - ctx.clearRect(0, 0, width, height); - ctx.fillText("" + Math.floor( t * 1000 ) / 1000, 0, 10); - } - - } - - } -} diff --git a/benchmark/changes/changing_texts.qml b/benchmark/changes/changing_texts.qml deleted file mode 100644 index d581803..0000000 --- a/benchmark/changes/changing_texts.qml +++ /dev/null @@ -1,20 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 100; - property int staticCount: 1000; - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 2347; loops: Animation.Infinite } - - Repeater { - id: repeater - model: root.count - Text { - x: Math.random() * root.width - y: Math.random() * root.height - text: Math.floor( root.t * 1000 ) / 1000; - } - } -} diff --git a/benchmark/creation/delegates_blendedrect.qml b/benchmark/creation/delegates_blendedrect.qml deleted file mode 100644 index f767b28..0000000 --- a/benchmark/creation/delegates_blendedrect.qml +++ /dev/null @@ -1,27 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 50; - property int staticCount: 2500; - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite } - onTChanged: { - repeater.model = 0; - repeater.model = root.count - } - - Component.onCompleted: repeater.model = root.count - - Repeater { - id: repeater - Rectangle { - x: Math.random() * (root.width - width) - y: Math.random() * (root.height - height) - width: 30 - height: 15 - color: Qt.hsla(0.7, 0.3, 0.6, 0.5); - } - } -} diff --git a/benchmark/creation/delegates_buttoncontrol.qml b/benchmark/creation/delegates_buttoncontrol.qml deleted file mode 100644 index 9eb1dbb..0000000 --- a/benchmark/creation/delegates_buttoncontrol.qml +++ /dev/null @@ -1,26 +0,0 @@ -import QtQuick 2.0 -import QtQuick.Controls 1.0 - -Item { - id: root; - property int count: 20; - property int staticCount: 1000; - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite } - onTChanged: { - repeater.model = 0; - repeater.model = root.count - } - - Component.onCompleted: repeater.model = root.count - - Repeater { - id: repeater - Button { - x: Math.random() * root.width - width - y: Math.random() * root.height - height - text: "Item #" + index; - } - } -} diff --git a/benchmark/creation/delegates_buttoncontrol2.qml b/benchmark/creation/delegates_buttoncontrol2.qml deleted file mode 100644 index 68626f2..0000000 --- a/benchmark/creation/delegates_buttoncontrol2.qml +++ /dev/null @@ -1,26 +0,0 @@ -import QtQuick 2.0 -import QtQuick.Controls 2.0 - -Item { - id: root; - property int count: 20; - property int staticCount: 1000; - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite } - onTChanged: { - repeater.model = 0; - repeater.model = root.count - } - - Component.onCompleted: repeater.model = root.count - - Repeater { - id: repeater - Button { - x: Math.random() * root.width - width - y: Math.random() * root.height - height - text: "Item #" + index; - } - } -} diff --git a/benchmark/creation/delegates_column.qml b/benchmark/creation/delegates_column.qml deleted file mode 100644 index db1eee9..0000000 --- a/benchmark/creation/delegates_column.qml +++ /dev/null @@ -1,49 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 20; - property int staticCount: 1000; - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite } - onTChanged: { - repeater.model = 0; - repeater.model = root.count - } - - Component.onCompleted: repeater.model = root.count - - Repeater { - id: repeater - Column { - x: Math.random() * (root.width - width) - y: Math.random() * (root.height - height) - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - } - } -} diff --git a/benchmark/creation/delegates_columnlayout.qml b/benchmark/creation/delegates_columnlayout.qml deleted file mode 100644 index 166089f..0000000 --- a/benchmark/creation/delegates_columnlayout.qml +++ /dev/null @@ -1,50 +0,0 @@ -import QtQuick 2.0 -import QtQuick.Layouts 1.0 - -Item { - id: root; - property int count: 20; - property int staticCount: 1000; - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite } - onTChanged: { - repeater.model = 0; - repeater.model = root.count - } - - Component.onCompleted: repeater.model = root.count - - Repeater { - id: repeater - ColumnLayout { - x: Math.random() * (root.width - width) - y: Math.random() * (root.height - height) - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - } - } -} diff --git a/benchmark/creation/delegates_complex.qml b/benchmark/creation/delegates_complex.qml deleted file mode 100644 index f78943a..0000000 --- a/benchmark/creation/delegates_complex.qml +++ /dev/null @@ -1,44 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 20; - property int staticCount: 1000; - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite } - onTChanged: { - repeater.model = 0; - repeater.model = root.count - } - - Component.onCompleted: repeater.model = root.count - - Repeater { - id: repeater - Rectangle { - x: Math.random() * root.width - y: Math.random() * root.height - width: 100 - height: 50 - gradient: Gradient { - GradientStop { position: 0; color: "steelblue" } - GradientStop { position: 1; color: "black" } - } - Repeater { - model: 10 - Text { - id: label - x: (index % 2) * 50 - y: Math.floor(index / 2) * 10; - width: 50 - height: 10 - horizontalAlignment: Text.AlignHCenter - text: "Item #" + index - color: "white" - font.pixelSize: 10 - } - } - } - } -} diff --git a/benchmark/creation/delegates_flow.qml b/benchmark/creation/delegates_flow.qml deleted file mode 100644 index c38161c..0000000 --- a/benchmark/creation/delegates_flow.qml +++ /dev/null @@ -1,49 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 20; - property int staticCount: 1000; - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite } - onTChanged: { - repeater.model = 0; - repeater.model = root.count - } - - Component.onCompleted: repeater.model = root.count - - Repeater { - id: repeater - Flow { - x: Math.random() * (root.width - width) - y: Math.random() * (root.height - height) - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - } - } -} diff --git a/benchmark/creation/delegates_grid.qml b/benchmark/creation/delegates_grid.qml deleted file mode 100644 index e30df75..0000000 --- a/benchmark/creation/delegates_grid.qml +++ /dev/null @@ -1,49 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 20; - property int staticCount: 1000; - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite } - onTChanged: { - repeater.model = 0; - repeater.model = root.count - } - - Component.onCompleted: repeater.model = root.count - - Repeater { - id: repeater - Grid { - x: Math.random() * (root.width - width) - y: Math.random() * (root.height - height) - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - } - } -} diff --git a/benchmark/creation/delegates_gridlayout.qml b/benchmark/creation/delegates_gridlayout.qml deleted file mode 100644 index 2bf22b7..0000000 --- a/benchmark/creation/delegates_gridlayout.qml +++ /dev/null @@ -1,51 +0,0 @@ -import QtQuick 2.0 -import QtQuick.Layouts 1.0 - -Item { - id: root; - property int count: 20; - property int staticCount: 1000; - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite } - onTChanged: { - repeater.model = 0; - repeater.model = root.count - } - - Component.onCompleted: repeater.model = root.count - - Repeater { - id: repeater - GridLayout { - x: Math.random() * (root.width - width) - y: Math.random() * (root.height - height) - columns: 2 - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - Rectangle { - width: 50 - height: 10 - color: "red" - } - } - } -} diff --git a/benchmark/creation/delegates_image.qml b/benchmark/creation/delegates_image.qml deleted file mode 100644 index a5768f0..0000000 --- a/benchmark/creation/delegates_image.qml +++ /dev/null @@ -1,34 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 50; - property int staticCount: 2500; - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite } - onTChanged: { - repeater.model = 0; - repeater.model = root.count - } - - Component.onCompleted: repeater.model = root.count - - property var names: [ - "butterfly-wide.png", - "butterfly-half.png", - "butterfly-collapsed.png" - ]; - - Repeater { - id: repeater - Image { - x: Math.random() * (root.width - width) - y: Math.random() * (root.height - height) - source: "../" + root.names[index % 3]; - width: 20 - height: 20 - - } - } -} diff --git a/benchmark/creation/delegates_item.qml b/benchmark/creation/delegates_item.qml deleted file mode 100644 index 944fe9e..0000000 --- a/benchmark/creation/delegates_item.qml +++ /dev/null @@ -1,26 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 50; - property int staticCount: 5000; - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite } - onTChanged: { - repeater.model = 0; - repeater.model = root.count - } - - Component.onCompleted: repeater.model = root.count - - Repeater { - id: repeater - Item { - x: Math.random() * (root.width - width) - y: Math.random() * (root.height - height) - width: 30 - height: 15 - } - } -} diff --git a/benchmark/creation/delegates_item_empty.qml b/benchmark/creation/delegates_item_empty.qml deleted file mode 100644 index f8d8607..0000000 --- a/benchmark/creation/delegates_item_empty.qml +++ /dev/null @@ -1,22 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 50; - property int staticCount: 5000; - - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite } - onTChanged: { - repeater.model = 0; - repeater.model = root.count - } - - Component.onCompleted: repeater.model = root.count - - Repeater { - id: repeater - Item { - } - } -} diff --git a/benchmark/creation/delegates_item_empty_jscreation.qml b/benchmark/creation/delegates_item_empty_jscreation.qml deleted file mode 100644 index 0afa7ee..0000000 --- a/benchmark/creation/delegates_item_empty_jscreation.qml +++ /dev/null @@ -1,34 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root; - property int count: 50; - property int staticCount: 5000; - - property var items; - property real t; - NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite } - onTChanged: { - allocate(); - } - - Component { - id: component; - Item { - } - } - - function allocate() { - - if (items && items.length) { - for (var i=0; i