You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-intel -profiler -commit main --envvars DOTNET_JitDisasm:Vector DOTNET_EnableAVX512F:0
usingSystem.Text;usingBenchmarkDotNet.Attributes;usingBenchmarkDotNet.Running;// Actual runner is optional, but if it exists, it has to be like this:BenchmarkSwitcher.FromAssembly(typeof(Bench).Assembly).Run(args);publicclassBench{publicintsize=512;publicstringencName="utf-8";privateEncoding_enc;privatestring_toEncode;privatechar[]_chars;[GlobalSetup]publicvoidSetupGetBytes(){_enc=Encoding.GetEncoding(encName);_toEncode=CreateString(size);_chars=_toEncode.ToCharArray();}[Benchmark][MemoryRandomization]publicintGetByteCount()=>_enc.GetByteCount(_chars);publicstaticstringCreateString(intlength){char[]str=newchar[length];for(inti=0;i<str.Length;i++){// Add path separator so folders aren't too long.if(i%20==0){str[i]=Path.DirectorySeparatorChar;}else{str[i]='a';}}returnnewstring(str);}}
(EgorBot will reply in this issue)
The text was updated successfully, but these errors were encountered:
Processing dotnet/runtime#111824 (comment) command:
Command
-intel -profiler -commit main --envvars DOTNET_JitDisasm:Vector DOTNET_EnableAVX512F:0
(EgorBot will reply in this issue)
The text was updated successfully, but these errors were encountered: