-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Processing dotnet/runtime#121309 (comment) command:
Command
-amd -intel
using System;
using System.Net;
using BenchmarkDotNet.Attributes;
public class IPv4_u16_Benchmarks
{
public IEnumerable<string> Data() => [
new string('A', 64),
"HelloWorld1234567890"
];
[Benchmark]
[ArgumentsSource(nameof(Data))]
public bool M(string s)
{
for (int i = 0; i < s.Length; i++)
{
char ch = s[i];
if (!char.IsAsciiLetterOrDigit(ch))
return false;
}
return true;
}
}(EgorBot will reply in this issue)
Metadata
Metadata
Assignees
Labels
No labels