Add benchmark test for Intl.Locale

Bug: v8:9153
Change-Id: I48adc554736b19507da318a157ef2f23bf7cbd52
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1610216
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61549}
This commit is contained in:
Frank Tang 2019-05-14 11:40:11 -07:00 committed by Commit Bot
parent deb3231a23
commit 241768b439
2 changed files with 15 additions and 1 deletions

View File

@ -30,3 +30,15 @@ function NewIntlRelativeTimeFormat() {
let obj = new Intl.RelativeTimeFormat();
}
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, ()=>{});

View File

@ -504,7 +504,9 @@
{"name": "NewIntlNumberFormat"},
{"name": "NewIntlPluralRules"},
{"name": "NewIntlListFormat"},
{"name": "NewIntlRelativeTimeFormat"}
{"name": "NewIntlRelativeTimeFormat"},
{"name": "NewIntlLocale"},
{"name": "NewIntlLocaleWithOptions"}
]
},
{