Commit 241768b4 authored by Frank Tang's avatar Frank Tang Committed by Commit Bot

Add benchmark test for Intl.Locale

Bug: v8:9153
Change-Id: I48adc554736b19507da318a157ef2f23bf7cbd52
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1610216Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61549}
parent deb3231a
...@@ -30,3 +30,15 @@ function NewIntlRelativeTimeFormat() { ...@@ -30,3 +30,15 @@ function NewIntlRelativeTimeFormat() {
let obj = new Intl.RelativeTimeFormat(); let obj = new Intl.RelativeTimeFormat();
} }
createSuite('NewIntlRelativeTimeFormat', 100, NewIntlRelativeTimeFormat, ()=>{}); createSuite('NewIntlRelativeTimeFormat', 100, NewIntlRelativeTimeFormat, ()=>{});
function NewIntlLocaleWithOptions() {
let obj = new Intl.Locale("en-Latn-US-u-nu-thai",
{ language: "zh", region: "TW", script: "Hant", calendar: "roc", collation: "zhuyin",
hourCycle: "h11", caseFirst: "upper", numberingSystem: "hanidec"});
}
createSuite('NewIntlLocaleWithOptions', 100, NewIntlLocaleWithOptions, ()=>{});
function NewIntlLocale() {
let obj = new Intl.Locale("zh");
}
createSuite('NewIntlLocale', 100, NewIntlLocale, ()=>{});
...@@ -504,7 +504,9 @@ ...@@ -504,7 +504,9 @@
{"name": "NewIntlNumberFormat"}, {"name": "NewIntlNumberFormat"},
{"name": "NewIntlPluralRules"}, {"name": "NewIntlPluralRules"},
{"name": "NewIntlListFormat"}, {"name": "NewIntlListFormat"},
{"name": "NewIntlRelativeTimeFormat"} {"name": "NewIntlRelativeTimeFormat"},
{"name": "NewIntlLocale"},
{"name": "NewIntlLocaleWithOptions"}
] ]
}, },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment