This tests the performance of MemoryExtensions.ToUpperInvariant(this ReadOnlySpan<char>, Span<char>)
, String.GetHashCode()
, and String.GetHashCode(StringComparison.OrdinalIgnoreCase)
.
In below table:
- baseline coreclr = 3.0.0-preview1-26808-05
- local build (6) = local build from private dev Utf8String branch, 6th rev.
- local build (7) = local build from private dev Utf8String branch, 7th rev.
Method | Toolchain | StringLength | Mean | Error | StdDev | Scaled | ScaledSD |
---|---|---|---|---|---|---|---|
ToUpperInvariant | baseline coreclr | 0 | 27.112 ns | 0.7416 ns | 1.1763 ns | 1.00 | 0.00 |