aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmarks/auto/js/date_getYear.qml
blob: 2e2639a5d634a9f30781f59d57453ba8db5b0e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import QtQuick 2.0
import QmlBench 1.0

// Tests the performance of getting the year out of a Date object
CreationBenchmark {
    id: root;
    count: 50;
    staticCount: 1500;
    property date dt: new Date()
    delegate: Item {
        property int year: root.dt.getYear()
    }
}