diff options
Diffstat (limited to 'benchmarks')
5 files changed, 70 insertions, 0 deletions
diff --git a/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_array.qml b/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_array.qml new file mode 100644 index 0000000..e220943 --- /dev/null +++ b/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_array.qml @@ -0,0 +1,14 @@ +import QtQuick 2.0 +import QmlBench 1.0 + +// Tests the creation of the JS variant type as a property. +CreationBenchmark { + id: root; + count: 50 + staticCount: 2500 + delegate: Item { + property var value: [42] + } +} + + diff --git a/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_bool.qml b/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_bool.qml new file mode 100644 index 0000000..478bfb4 --- /dev/null +++ b/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_bool.qml @@ -0,0 +1,14 @@ +import QtQuick 2.0 +import QmlBench 1.0 + +// Tests the creation of the JS variant type as a property. +CreationBenchmark { + id: root; + count: 50 + staticCount: 2500 + delegate: Item { + property variant value: true + } +} + + diff --git a/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_int.qml b/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_int.qml new file mode 100644 index 0000000..da3a5f9 --- /dev/null +++ b/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_int.qml @@ -0,0 +1,14 @@ +import QtQuick 2.0 +import QmlBench 1.0 + +// Tests the creation of the JS variant type as a property. +CreationBenchmark { + id: root; + count: 50 + staticCount: 2500 + delegate: Item { + property variant value: 42 + } +} + + diff --git a/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_object.qml b/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_object.qml new file mode 100644 index 0000000..4b2a863 --- /dev/null +++ b/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_object.qml @@ -0,0 +1,14 @@ +import QtQuick 2.0 +import QmlBench 1.0 + +// Tests the creation of the JS variant type as a property. +CreationBenchmark { + id: root; + count: 50 + staticCount: 2500 + delegate: Item { + property variant value: { 42: true } + } +} + + diff --git a/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_string.qml b/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_string.qml new file mode 100644 index 0000000..d8175f2 --- /dev/null +++ b/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_string.qml @@ -0,0 +1,14 @@ +import QtQuick 2.0 +import QmlBench 1.0 + +// Tests the creation of the JS variant type as a property. +CreationBenchmark { + id: root; + count: 50 + staticCount: 2500 + delegate: Item { + property variant value: "42" + } +} + + |