diff options
author | Robin Burchell <robin.burchell@crimson.no> | 2017-04-04 12:17:03 +0200 |
---|---|---|
committer | Robin Burchell <robin.burchell@crimson.no> | 2017-04-04 15:59:56 +0000 |
commit | d97a6d64341591638c334e706378dd6d3c498836 (patch) | |
tree | 19ba68c0f4250ace457c796b3db98f1aa0737a60 /benchmarks | |
parent | 1d6b8388e7c4c18926c8da0047bf55ff5baf86f6 (diff) |
quick.text: Add hindi and arabic text benchmarks
Shows the impact of shaping, which the existing benchmarks gloss over.
Text is of comparable length/complexity to the existing text benchmarks.
Change-Id: Ia9fd2fdb8923fe8ae687c6e94bc7e3c3b4a0f033
Reviewed-by: Gunnar Sletta <gunnar@crimson.no>
Diffstat (limited to 'benchmarks')
4 files changed, 67 insertions, 0 deletions
diff --git a/benchmarks/auto/creation/quick.text/delegates_longtext_arabic.qml b/benchmarks/auto/creation/quick.text/delegates_longtext_arabic.qml new file mode 100644 index 0000000..9a22083 --- /dev/null +++ b/benchmarks/auto/creation/quick.text/delegates_longtext_arabic.qml @@ -0,0 +1,17 @@ +import QtQuick 2.0 +import QmlBench 1.0 + +CreationBenchmark { + id: root; + count: 20; + staticCount: 500; + delegate: Text { + x: Math.random() * (root.width - width) + y: Math.random() * (root.height - height) + width: root.width * 0.33 + wrapMode: Text.WordWrap + font.pixelSize: 10 + text: "عل الدمج والمانيا حين. تحت سقوط انذار ان. ودول الخارجية و كلّ. جمعت والتي الساحل في ومن. أن لها أدوات مهمّات الأبرياء. شاسعة المحيط الساحلية ومن قد, فعل إختار العصبة التخطيط ان, هو فسقط موالية ولم. عرض و ببعض كردة إعلان, بين ثم سكان واستمرت المؤلّفة. لم مكن ألمّ اتفاق نتيجة, هُزم الجديدة، إيو بـ, به، عن انذار المارق الآلاف. اتفاق وإعلان بريطانيا، ان بحث, بعد ٣٠ قبضتهم الغالي الجنود. فصل تم وقام جسيمة, يعبأ وبدون الموسوعة ان تعد. ٢٠٠٤ وتتحمّل التخطيط وفي عل." + } +} + diff --git a/benchmarks/auto/creation/quick.text/delegates_longtext_hindi.qml b/benchmarks/auto/creation/quick.text/delegates_longtext_hindi.qml new file mode 100644 index 0000000..ab414cb --- /dev/null +++ b/benchmarks/auto/creation/quick.text/delegates_longtext_hindi.qml @@ -0,0 +1,19 @@ +import QtQuick 2.0 +import QmlBench 1.0 + +CreationBenchmark { + id: root; + count: 20; + staticCount: 500; + delegate: Text { + x: Math.random() * (root.width - width) + y: Math.random() * (root.height - height) + width: root.width * 0.33 + wrapMode: Text.WordWrap + font.pixelSize: 10 + text: "गोपनीयता लाभान्वित अमितकुमार विभाग बहुत जानते बदले गटकउसि भोगोलिक बीसबतेबोध यायेका वर्तमान दस्तावेज अपने नवंबर परस्पर विस्तरणक्षमता मुक्त मेमत समजते लगती क्षमता खरिदने तकनिकल बाजार भोगोलिक सम्पर्क जिवन ध्येय विश्वास पहोचाना उपलब्धता सकता विश्व ब्रौशर एसेएवं सुचनाचलचित्र सहित वेबजाल आवश्यकत कार्यसिधान्तो विशेष किके कार्य बाधा ऎसाजीस समस्याए निर्माता पुर्णता बीसबतेबोध भाति चुनने उपेक्ष विकसित विश्लेषण नीचे दौरान आपको मुख्यतह विचारशिलता कराना कार्य लगती वातावरण सार्वजनिक जोवे व्यवहार मार्गदर्शन विशेष आजपर पहोच। पुर्णता विचरविमर्श विकासक्षमता शीघ्र पुस्तक आशाआपस कार्यकर्ता वहहर नाकर असक्षम प्राप्त आंतरजाल विवरन जाता जिसकी सभीकुछ परिभाषित शीघ्र निर्देश मुख्यतह बिना" + + } +} + + diff --git a/benchmarks/auto/creation/quick.text/delegates_text_arabic.qml b/benchmarks/auto/creation/quick.text/delegates_text_arabic.qml new file mode 100644 index 0000000..c077a9a --- /dev/null +++ b/benchmarks/auto/creation/quick.text/delegates_text_arabic.qml @@ -0,0 +1,15 @@ +import QtQuick 2.0 +import QmlBench 1.0 + +CreationBenchmark { + id: root; + count: 50; + staticCount: 1000; + delegate: Text { + x: Math.random() * (root.width - width) + y: Math.random() * (root.height - height) + text: "مع مئات" + font.pixelSize: 10 + } +} + diff --git a/benchmarks/auto/creation/quick.text/delegates_text_hindi.qml b/benchmarks/auto/creation/quick.text/delegates_text_hindi.qml new file mode 100644 index 0000000..c98cec3 --- /dev/null +++ b/benchmarks/auto/creation/quick.text/delegates_text_hindi.qml @@ -0,0 +1,16 @@ +import QtQuick 2.0 +import QmlBench 1.0 + +CreationBenchmark { + id: root; + count: 50; + staticCount: 1000; + delegate: Text { + x: Math.random() * (root.width - width) + y: Math.random() * (root.height - height) + text: "गोपनीयता लाभान्वित" + font.pixelSize: 10 + } +} + + |