Skip to content

Commit be810c5

Browse files
committed
Cleanup
1 parent 045caa2 commit be810c5

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ cd benchmark
5555
dotnet run -c Release
5656
```
5757

58-
To run all the benchmarks, add the "runall" arguments
59-
```
60-
cd benchmark
61-
dotnet run -c Release runall
62-
```
63-
6458
If you are under macOS or Linux, you may want to run the benchmarks in privileged mode:
6559

6660
```
@@ -75,6 +69,26 @@ cd benchmark
7569
sudo dotnet run -c Release --filter *RealData*
7670
```
7771

72+
To get a list of all available tests you may enter:
73+
74+
```
75+
cd benchmark
76+
sudo dotnet run -c Release --list tree
77+
```
78+
79+
To get a prettier list in tree format, you may enter:
80+
81+
```
82+
cd benchmark
83+
sudo dotnet run -c Release --list tree
84+
```
85+
86+
To run all benchmarks, you may enter:
87+
88+
```
89+
sudo dotnet run -c Release runall
90+
```
91+
7892
## Building the library
7993

8094
```

src/UTF8.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace SimdUnicode
88
{
99
public static class UTF8
1010
{
11-
11+
1212
// | Method | FileName | N | Mean | Error | StdDev | Median |
1313
// |----------------------------------- |----------------------- |----- |----------:|---------:|---------:|----------:|
1414
// | SimDUnicodeUtf8ValidationRealData | data/arabic.utf8.txt | 100 | 443.13 us | 2.262 us | 2.005 us | 442.34 us |
@@ -103,7 +103,7 @@ public static class UTF8
103103
if (next_pos > inputLength) { return pInputBuffer + pos; } // Too short
104104
if ((pInputBuffer[pos + 1] & 0b11000000) != 0b10000000) { return pInputBuffer + pos; } // Too short
105105
// range check
106-
code_point = (uint)(first_byte & 0b00011111) << 6 | (uint)(pInputBuffer[pos + 1] & 0b00111111);
106+
code_point = (uint)(first_byte & 0b00011111) << 6 | (uint)(pInputBuffer[pos + 1] & 0b00111111);
107107
if ((code_point < 0x80) || (0x7ff < code_point)) { return pInputBuffer + pos; } // Overlong
108108
}
109109
else if ((first_byte & 0b11110000) == 0b11100000)

0 commit comments

Comments
 (0)