MihuBot / runtime-utils

0 stars 0 forks source link

[Benchmark X64] MihaZupan/runtime/indexof-revert #710

Open MihuBot opened 1 month ago

MihuBot commented 1 month ago

Job completed in 1 hour 9 minutes.

Using arguments: benchmark System.Memory.ReadOnlySpan.IndexOfString -long https://github.com/MihaZupan/performance/tree/invariant-indexof -NoPRLink

System.Memory.ReadOnlySpan ``` BenchmarkDotNet v0.14.1-nightly.20240924.187, Linux Ubuntu 22.04.5 LTS (Jammy Jellyfish) AMD EPYC 7763, 1 CPU, 8 logical and 4 physical cores LongRun : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX2 Job=LongRun OutlierMode=DontRemove IterationCount=100 LaunchCount=3 MemoryRandomization=True WarmupCount=15 ``` | Method | Toolchain | input | value | comparisonType | Mean | Error | Ratio | Allocated | Alloc Ratio | |-------------- |------------------------ |------------------------------------ |-------- |--------------------------- |----------:|---------:|------:|----------:|------------:| | **IndexOfString** | **Main** | **AAAAA5AAAA** | **5** | **InvariantCulture** | **24.84 ns** | **0.036 ns** | **1.00** | **-** | **NA** | | IndexOfString | PR | AAAAA5AAAA | 5 | InvariantCulture | 21.11 ns | 0.026 ns | 0.85 | - | NA | | | | | | | | | | | | | **IndexOfString** | **Main** | **AAAAAAAAAAAA(...)AAAAAAAAAAAA [100]** | **x** | **InvariantCultureIgnoreCase** | **195.51 ns** | **0.294 ns** | **1.00** | **-** | **NA** | | IndexOfString | PR | AAAAAAAAAAAA(...)AAAAAAAAAAAA [100] | x | InvariantCultureIgnoreCase | 173.39 ns | 0.200 ns | 0.89 | - | NA | | | | | | | | | | | | | **IndexOfString** | **Main** | **ABCDE** | **c** | **InvariantCultureIgnoreCase** | **19.07 ns** | **0.066 ns** | **1.00** | **-** | **NA** | | IndexOfString | PR | ABCDE | c | InvariantCultureIgnoreCase | 18.10 ns | 0.031 ns | 0.95 | - | NA | | | | | | | | | | | | | **IndexOfString** | **Main** | **foobardzsdzs** | **rddzs** | **InvariantCulture** | **32.30 ns** | **0.031 ns** | **1.00** | **-** | **NA** | | IndexOfString | PR | foobardzsdzs | rddzs | InvariantCulture | 34.46 ns | 0.252 ns | 1.07 | - | NA | | | | | | | | | | | | | **IndexOfString** | **Main** | **string1** | **string2** | **InvariantCulture** | **29.12 ns** | **0.082 ns** | **1.00** | **-** | **NA** | | IndexOfString | PR | string1 | string2 | InvariantCulture | 27.44 ns | 0.152 ns | 0.94 | - | NA | | | | | | | | | | | | | **IndexOfString** | **Main** | **だ** | **た** | **InvariantCulture** | **624.65 ns** | **0.966 ns** | **1.00** | **-** | **NA** | | IndexOfString | PR | だ | た | InvariantCulture | 630.86 ns | 1.285 ns | 1.01 | - | NA |

Artifacts:

MihuBot commented 1 month ago

@MihaZupan