We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c51937 commit 8e4331dCopy full SHA for 8e4331d
idna/benches/all.rs
@@ -11,6 +11,12 @@ fn to_unicode_puny_label(bench: &mut Bencher) {
11
bench.iter(|| config.to_unicode(black_box(encoded)));
12
}
13
14
+fn to_ascii_already_puny_label(bench: &mut Bencher) {
15
+ let encoded = "abc.xn--mgbcm";
16
+ let config = Config::default();
17
+ bench.iter(|| config.to_ascii(black_box(encoded)));
18
+}
19
+
20
fn to_unicode_ascii(bench: &mut Bencher) {
21
let encoded = "example.com";
22
let config = Config::default();
@@ -47,6 +53,7 @@ benchmark_group!(
47
53
to_unicode_ascii,
48
54
to_unicode_merged_label,
49
55
to_ascii_puny_label,
56
+ to_ascii_already_puny_label,
50
57
to_ascii_simple,
51
58
to_ascii_merged,
52
59
);
0 commit comments