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
[ClrJob]
[CoreJob]
[RPlotExporter]
public class ObjectTest
{
const string testString = "blablabla";
[Benchmark]
public bool Small()
{
var sb = new StringBuilder();
for (int i = 0; i < 10; i++)
{
sb.Append(testString);
}
return sb.Length > 0;
}
[Benchmark]
public bool Medium()
{
var sb = new StringBuilder();
for (int i = 0; i < 1000; i++)
{
sb.Append(testString);
}
return sb.Length > 0;
}
[Benchmark]
public bool Large()
{
var sb = new StringBuilder();
for (int i = 0; i < 100000; i++)
{
sb.Append(testString);
}
return sb.Length > 0;
}
}
The text was updated successfully, but these errors were encountered:
The source of the problem has been identified and now it's being tracked in dotnet/coreclr#27511 so I am closing this issue.
Moreover, I've also improved the performance of Append(char) so when dotnet/coreclr#27511 is implemented the .NET Core implementation is going to be actually faster (not just on par)
There is a small performance regression comparing 2.2 vs 3.0 (10%), but a bigger regression comparing .NET Framework vs 3.0 (18%).
The text was updated successfully, but these errors were encountered: