diff options
author | Mathias Malmqvist <mathias.malmqvist@nokia.com> | 2010-11-30 18:58:04 +0100 |
---|---|---|
committer | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2010-11-30 18:58:04 +0100 |
commit | 8fcc6b60ad9b8141af2e23e487a9379629b50bb4 (patch) | |
tree | 502beada6e163a446e85dfbdf20d5d46cd6f8a9b /tests/benchmarks | |
parent | 0a59bfb933b0a78ddf4be11b09f320d5a9c790fc (diff) | |
download | qtquickcontrols-8fcc6b60ad9b8141af2e23e487a9379629b50bb4.tar.gz |
Added component loading benchmark tests
Merge-request: 29
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
Diffstat (limited to 'tests/benchmarks')
-rw-r--r-- | tests/benchmarks/BenchmarkResults.txt | 19 | ||||
-rw-r--r-- | tests/benchmarks/BusyIndicatorBenchmark.qml | 9 | ||||
-rw-r--r-- | tests/benchmarks/ButtonBenchmark.qml | 9 | ||||
-rw-r--r-- | tests/benchmarks/ButtonBlockBenchmark.qml | 15 | ||||
-rw-r--r-- | tests/benchmarks/CheckBoxBenchmark.qml | 9 | ||||
-rw-r--r-- | tests/benchmarks/ChoiceListBenchmark.qml | 23 | ||||
-rw-r--r-- | tests/benchmarks/LineEditBenchmark.qml | 9 | ||||
-rw-r--r-- | tests/benchmarks/MultiLineEditBenchmark.qml | 9 | ||||
-rw-r--r-- | tests/benchmarks/ProgressBarBenchmark.qml | 9 | ||||
-rw-r--r-- | tests/benchmarks/RadioButtonBenchmark.qml | 9 | ||||
-rw-r--r-- | tests/benchmarks/SliderBenchmark.qml | 9 | ||||
-rw-r--r-- | tests/benchmarks/SpinBoxBenchmark.qml | 9 | ||||
-rw-r--r-- | tests/benchmarks/SwitchBenchmark.qml | 9 | ||||
-rwxr-xr-x | tests/benchmarks/qmltime | bin | 0 -> 269709 bytes |
14 files changed, 147 insertions, 0 deletions
diff --git a/tests/benchmarks/BenchmarkResults.txt b/tests/benchmarks/BenchmarkResults.txt new file mode 100644 index 00000000..09af926a --- /dev/null +++ b/tests/benchmarks/BenchmarkResults.txt @@ -0,0 +1,19 @@ +See qt/tests/benchmarks/declarative/qmltime/ + +Run (ms): (1) + +Button 7.5-8.4 +ButtonBlock 32.9-35.8 +BusyIndicator 0.56 +CheckBox 1.9-2.0 +ChoiceList 7.4-7.8 +MultiLineEdit 6.6-6.7 +ProgressBar 1.4-1.5 +RadioButton 2.0 +Slider 4.3-4.5 +SpinBox 4.8 +Switch 3.7 + + +Runs: +(1) 30 Nov 2010 on Mathias Malmqvist's laptop, at SHA 272fb975124d57e4561d7a714d123339559fad2b diff --git a/tests/benchmarks/BusyIndicatorBenchmark.qml b/tests/benchmarks/BusyIndicatorBenchmark.qml new file mode 100644 index 00000000..0ec7abf3 --- /dev/null +++ b/tests/benchmarks/BusyIndicatorBenchmark.qml @@ -0,0 +1,9 @@ +import QtQuick 1.0 +import QmlTime 1.0 as QmlTime +import "../.." as QtComponents + +Item { + QmlTime.Timer { + component: QtComponents.BusyIndicator { } + } +} diff --git a/tests/benchmarks/ButtonBenchmark.qml b/tests/benchmarks/ButtonBenchmark.qml new file mode 100644 index 00000000..43749aef --- /dev/null +++ b/tests/benchmarks/ButtonBenchmark.qml @@ -0,0 +1,9 @@ +import QtQuick 1.0 +import QmlTime 1.0 as QmlTime +import "../.." as QtComponents + +Item { + QmlTime.Timer { + component: QtComponents.Button { text: "Button" } + } +} diff --git a/tests/benchmarks/ButtonBlockBenchmark.qml b/tests/benchmarks/ButtonBlockBenchmark.qml new file mode 100644 index 00000000..34a07cdb --- /dev/null +++ b/tests/benchmarks/ButtonBlockBenchmark.qml @@ -0,0 +1,15 @@ +import QtQuick 1.0 +import QmlTime 1.0 as QmlTime +import "../.." as QtComponents + +Item { + QmlTime.Timer { + component: QtComponents.ButtonBlock { + model: ListModel { + ListElement { text: "Button A" } + ListElement { text: "Button B" } + ListElement { text: "Button C" } + } + } + } +} diff --git a/tests/benchmarks/CheckBoxBenchmark.qml b/tests/benchmarks/CheckBoxBenchmark.qml new file mode 100644 index 00000000..a906c7c6 --- /dev/null +++ b/tests/benchmarks/CheckBoxBenchmark.qml @@ -0,0 +1,9 @@ +import QtQuick 1.0 +import QmlTime 1.0 as QmlTime +import "../.." as QtComponents + +Item { + QmlTime.Timer { + component: QtComponents.CheckBox { } + } +} diff --git a/tests/benchmarks/ChoiceListBenchmark.qml b/tests/benchmarks/ChoiceListBenchmark.qml new file mode 100644 index 00000000..c8d3361d --- /dev/null +++ b/tests/benchmarks/ChoiceListBenchmark.qml @@ -0,0 +1,23 @@ +import QtQuick 1.0 +import QmlTime 1.0 as QmlTime +import "../.." as QtComponents + +Item { + property variant choiceListModel: ListModel { + ListElement { content: "Choice One" } + ListElement { content: "Choice Two" } + ListElement { content: "Choice Three" } + ListElement { content: "Choice Four" } + ListElement { content: "Choice Five" } + ListElement { content: "Choice Six" } + ListElement { content: "Choice Seven" } + ListElement { content: "Choice Eight" } + } + + QmlTime.Timer { + component: QtComponents.ChoiceList { + model: choiceListModel +// delegate: + } + } +} diff --git a/tests/benchmarks/LineEditBenchmark.qml b/tests/benchmarks/LineEditBenchmark.qml new file mode 100644 index 00000000..6b1413cd --- /dev/null +++ b/tests/benchmarks/LineEditBenchmark.qml @@ -0,0 +1,9 @@ +import QtQuick 1.0 +import QmlTime 1.0 as QmlTime +import "../.." as QtComponents + +Item { + QmlTime.Timer { + component: QtComponents.LineEdit { text: "This is the text being edited" } + } +} diff --git a/tests/benchmarks/MultiLineEditBenchmark.qml b/tests/benchmarks/MultiLineEditBenchmark.qml new file mode 100644 index 00000000..5aa8bd13 --- /dev/null +++ b/tests/benchmarks/MultiLineEditBenchmark.qml @@ -0,0 +1,9 @@ +import QtQuick 1.0 +import QmlTime 1.0 as QmlTime +import "../.." as QtComponents + +Item { + QmlTime.Timer { + component: QtComponents.MultiLineEdit { text: "This is the text being edited" } + } +} diff --git a/tests/benchmarks/ProgressBarBenchmark.qml b/tests/benchmarks/ProgressBarBenchmark.qml new file mode 100644 index 00000000..739bdba1 --- /dev/null +++ b/tests/benchmarks/ProgressBarBenchmark.qml @@ -0,0 +1,9 @@ +import QtQuick 1.0 +import QmlTime 1.0 as QmlTime +import "../.." as QtComponents + +Item { + QmlTime.Timer { + component: QtComponents.ProgressBar { } + } +} diff --git a/tests/benchmarks/RadioButtonBenchmark.qml b/tests/benchmarks/RadioButtonBenchmark.qml new file mode 100644 index 00000000..f8b571fe --- /dev/null +++ b/tests/benchmarks/RadioButtonBenchmark.qml @@ -0,0 +1,9 @@ +import QtQuick 1.0 +import QmlTime 1.0 as QmlTime +import "../.." as QtComponents + +Item { + QmlTime.Timer { + component: QtComponents.RadioButton { } + } +} diff --git a/tests/benchmarks/SliderBenchmark.qml b/tests/benchmarks/SliderBenchmark.qml new file mode 100644 index 00000000..4ed04e40 --- /dev/null +++ b/tests/benchmarks/SliderBenchmark.qml @@ -0,0 +1,9 @@ +import QtQuick 1.0 +import QmlTime 1.0 as QmlTime +import "../.." as QtComponents + +Item { + QmlTime.Timer { + component: QtComponents.Slider { } + } +} diff --git a/tests/benchmarks/SpinBoxBenchmark.qml b/tests/benchmarks/SpinBoxBenchmark.qml new file mode 100644 index 00000000..f86d7e24 --- /dev/null +++ b/tests/benchmarks/SpinBoxBenchmark.qml @@ -0,0 +1,9 @@ +import QtQuick 1.0 +import QmlTime 1.0 as QmlTime +import "../.." as QtComponents + +Item { + QmlTime.Timer { + component: QtComponents.SpinBox { } + } +} diff --git a/tests/benchmarks/SwitchBenchmark.qml b/tests/benchmarks/SwitchBenchmark.qml new file mode 100644 index 00000000..38835b2a --- /dev/null +++ b/tests/benchmarks/SwitchBenchmark.qml @@ -0,0 +1,9 @@ +import QtQuick 1.0 +import QmlTime 1.0 as QmlTime +import "../.." as QtComponents + +Item { + QmlTime.Timer { + component: QtComponents.Switch { } + } +} diff --git a/tests/benchmarks/qmltime b/tests/benchmarks/qmltime Binary files differnew file mode 100755 index 00000000..c01ae218 --- /dev/null +++ b/tests/benchmarks/qmltime |