File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 9
9
using System . Reflection ;
10
10
using System . Runtime . InteropServices . JavaScript ;
11
11
using static SimdUnicode . Utf8Validation ;
12
+ using System . Threading . Channels ;
12
13
13
14
14
15
// C# already have something that is *more or less* equivalent to our C++ simd class:
@@ -625,6 +626,8 @@ public static unsafe class Utf8Utility
625
626
}
626
627
}
627
628
629
+ // benches done with 2 times unroll
630
+
628
631
// | Method | FileName | Mean | Error | StdDev | Allocated |
629
632
// |---------------------------- |----------------------- |-----------:|----------:|----------:|----------:|
630
633
// | SIMDUtf8ValidationRealData | data/arabic.utf8.txt | 454.633 us | 4.3116 us | 3.8221 us | - |
@@ -796,6 +799,10 @@ public static unsafe class Utf8Utility
796
799
// call the SIMD function only if inputLength is sufficiently large (maybe 64 bytes),
797
800
// otherwise, use the scalar function.
798
801
////////////////
802
+ ///
803
+
804
+
805
+ // unrolling benchmarks done with scalar tail
799
806
// | Method | FileName | Mean | Error | StdDev | Allocated |
800
807
// |---------------------------- |----------------------- |-----------:|----------:|----------:|----------:|
801
808
// | SIMDUtf8ValidationRealData | data/arabic.utf8.txt | 428.127 us | 7.9313 us | 7.7896 us | - |
You can’t perform that action at this time.
0 commit comments