diff --git a/test/js-perf-test/Intl/constructor.js b/test/js-perf-test/Intl/constructor.js index e5b3a86694..72dc7e6ee7 100644 --- a/test/js-perf-test/Intl/constructor.js +++ b/test/js-perf-test/Intl/constructor.js @@ -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, ()=>{}); diff --git a/test/js-perf-test/JSTests5.json b/test/js-perf-test/JSTests5.json index 98f8e33f8a..261c3663f2 100644 --- a/test/js-perf-test/JSTests5.json +++ b/test/js-perf-test/JSTests5.json @@ -504,7 +504,9 @@ {"name": "NewIntlNumberFormat"}, {"name": "NewIntlPluralRules"}, {"name": "NewIntlListFormat"}, - {"name": "NewIntlRelativeTimeFormat"} + {"name": "NewIntlRelativeTimeFormat"}, + {"name": "NewIntlLocale"}, + {"name": "NewIntlLocaleWithOptions"} ] }, {