File tree Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,6 @@ cd benchmark
55
55
dotnet run -c Release
56
56
```
57
57
58
- To run all the benchmarks, add the "runall" arguments
59
- ```
60
- cd benchmark
61
- dotnet run -c Release runall
62
- ```
63
-
64
58
If you are under macOS or Linux, you may want to run the benchmarks in privileged mode:
65
59
66
60
```
@@ -75,6 +69,26 @@ cd benchmark
75
69
sudo dotnet run -c Release --filter *RealData*
76
70
```
77
71
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
+
78
92
## Building the library
79
93
80
94
```
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace SimdUnicode
8
8
{
9
9
public static class UTF8
10
10
{
11
-
11
+
12
12
// | Method | FileName | N | Mean | Error | StdDev | Median |
13
13
// |----------------------------------- |----------------------- |----- |----------:|---------:|---------:|----------:|
14
14
// | 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
103
103
if ( next_pos > inputLength ) { return pInputBuffer + pos ; } // Too short
104
104
if ( ( pInputBuffer [ pos + 1 ] & 0b11000000 ) != 0b10000000 ) { return pInputBuffer + pos ; } // Too short
105
105
// 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 ) ;
107
107
if ( ( code_point < 0x80 ) || ( 0x7ff < code_point ) ) { return pInputBuffer + pos ; } // Overlong
108
108
}
109
109
else if ( ( first_byte & 0b11110000 ) == 0b11100000 )
You can’t perform that action at this time.
0 commit comments