From 45da7843d6c7b70ecd37c952fd68dd84f79c23e0 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Wed, 3 May 2017 13:52:47 +0200 Subject: Make delegates_item_empty_jscreation & delegates_qobject comparable In delegates_qobject, we now use a JS array to store items in before deletion. This should make it a bit more heavy/slower. In delegates_item_empty_jscreation, we remove the redundant parenting (via 'root'), and just use the JS array. This should make it a bit lighter/faster. With these changes together, one can meaningfully get a bit of an idea of the raw impact of allocating QQuickItem vs QObject. Change-Id: I503a205760ff767b6ca8d42a2989755facaacb12 Reviewed-by: Gunnar Sletta --- .../auto/creation/quick.item/delegates_item_empty_jscreation.qml | 2 +- benchmarks/auto/creation/quick/delegates_qobject.qml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/benchmarks/auto/creation/quick.item/delegates_item_empty_jscreation.qml b/benchmarks/auto/creation/quick.item/delegates_item_empty_jscreation.qml index 89cded0..920b4c8 100644 --- a/benchmarks/auto/creation/quick.item/delegates_item_empty_jscreation.qml +++ b/benchmarks/auto/creation/quick.item/delegates_item_empty_jscreation.qml @@ -27,7 +27,7 @@ Benchmark { items = []; for (var i=0; i