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:
parent
deb3231a23
commit
241768b439
@ -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, ()=>{});
|
||||
|
@ -504,7 +504,9 @@
|
||||
{"name": "NewIntlNumberFormat"},
|
||||
{"name": "NewIntlPluralRules"},
|
||||
{"name": "NewIntlListFormat"},
|
||||
{"name": "NewIntlRelativeTimeFormat"}
|
||||
{"name": "NewIntlRelativeTimeFormat"},
|
||||
{"name": "NewIntlLocale"},
|
||||
{"name": "NewIntlLocaleWithOptions"}
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user