Skip to content

Commit 38d7b45

Browse files
committed
Added new benchmarks
1 parent 210c21b commit 38d7b45

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

benchmark/Unidecode.NET.Benchmark/Benchmarks.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,27 @@ public class Benchmarks
1212
{
1313

1414
[Benchmark]
15-
public void UnidecodeRussianTest()
15+
public void UnidecodeRussian()
1616
{
1717
var converted = "Работа с кириллицей".Unidecode();
1818
}
19+
20+
[Benchmark]
21+
public void UnidecodeAscii()
22+
{
23+
var converted = "Hello World!".Unidecode();
24+
}
25+
26+
[Benchmark]
27+
public void UnidecodeRussianChar()
28+
{
29+
var converted = 'и'.Unidecode();
30+
}
31+
32+
[Benchmark]
33+
public void UnidecodeAsciiChar()
34+
{
35+
var converted = 'Z'.Unidecode();
36+
}
37+
1938
}

0 commit comments

Comments
 (0)