Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions components/collator/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ pub fn collator_with_locale(criterion: &mut Criterion) {
.rev()
.collect::<Vec<&str>>(),
);
let content_bengali: (&str, Vec<&str>) = (
"TestNames_Bengali",
include_str!("data/TestNames_Bengali.txt")
.lines()
.filter(|&s| !s.starts_with('#'))
.rev()
.collect::<Vec<&str>>(),
);

// hsivonen@ : All five strengths are benched.
// The default is tertiary, so it makes sense to bench that.
Expand Down Expand Up @@ -217,6 +225,11 @@ pub fn collator_with_locale(criterion: &mut Criterion) {
vec![&content_latin, &content_polish],
&all_strength,
),
(
locale!("bn"),
vec![&content_latin, &content_bengali],
&all_strength,
),
];
for perf_parameter in performance_parameters {
let (locale_under_bench, files_under_bench, benched_strength) = perf_parameter;
Expand Down
64 changes: 64 additions & 0 deletions components/collator/benches/data/TestNames_Bengali.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# This file is part of ICU4X. For terms of use, please see the file
# called LICENSE at the top level of the ICU4X source tree
# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).

অমল
অমলা
অমিত
অমিতা
অমৃত
অমৃতা
অর্ণব
অর্ণা
অংশু
অংশুমান
অংশুমিতা
ঔরব
ঔরস
ঔদার্য
ঔজ্জ্বল্য
রঞ্জন
রঞ্জনা
রংগন
রঙন
রঞ্জিত
রঞ্জিতা
শংকর
শঙ্কর
শংকরী
শঙ্করী
শঙ্খ
শঙ্খা
শঙ্খজিৎ
ডালিম
ড়ালিম
ঢালিম
ঢ়ালিম
ডালিয়া
ড়ালিয়া
ঢালিয়া
ঢ়ালিয়া
কামনা
কাঁমনা
কামিনী
কাঁমিনী
সুরঞ্জন
সূরঞ্জন
সুঁরঞ্জন
সুঃরঞ্জন
গৌর
গৌরব
গৌতম
গৌরাঙ্গ
গোঁরাঙ্গ
গংরাঙ্গ
গঃরাঙ্গ
চাঁদনী
চন্দনী
চংদনী
চঃদনী
হংসরাজ
হংসিতা
হংসমালা
হঁসমালা
হঃসমালা