-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests #148
Comments
@EgorBot -aws_arm64 -gcp_arm64 using BenchmarkDotNet.Attributes;
public class C
{
private static string[] _arr = new string[100];
private static string _val = 1111111.ToString();
[Benchmark]
public void AssignRef()
{
var arr = _arr;
var val = _val;
for (var index = 0; index < arr.Length; index++)
arr[index] = val;
}
} |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
AssignRef | 148.1 ns | 0.02 ns |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
AssignRef | 171.3 ns | 0.01 ns |
@EgorBot -aws_milano -gcp_milano using BenchmarkDotNet.Attributes;
public class C
{
private static string[] _arr = new string[100];
private static string _val = 1111111.ToString();
[Benchmark]
public void AssignRef()
{
var arr = _arr;
var val = _val;
for (var index = 0; index < arr.Length; index++)
arr[index] = val;
}
} |
@EgorBot -aws_milano -gcp_milano using BenchmarkDotNet.Attributes;
public class C
{
private static string[] _arr = new string[100];
private static string _val = 1111111.ToString();
[Benchmark]
public void AssignRef()
{
var arr = _arr;
var val = _val;
for (var index = 0; index < arr.Length; index++)
arr[index] = val;
}
} |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
AssignRef | 256.4 ns | 0.10 ns |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
AssignRef | 261.6 ns | 0.18 ns |
@EgorBot -aws_arm64 -gcp_arm64 -aws_amd -gcp_intel using BenchmarkDotNet.Attributes;
public class C
{
private long a;
[Benchmark]
public void Interlocked_Increment()
{
for (int i = 0; i < 1000; i++)
Interlocked.Increment(ref a);
}
} |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 4.766 μs | 0.0007 μs |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 1.855 μs | 0.0194 μs |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 5.843 μs | 0.0070 μs |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 4.447 μs | 0.0002 μs |
@EgorBot -hetzner_amd using BenchmarkDotNet.Attributes;
public class C
{
private long a;
[Benchmark]
public void Interlocked_Increment()
{
for (int i = 0; i < 1000; i++)
Interlocked.Increment(ref a);
}
} |
2 similar comments
@EgorBot -hetzner_amd using BenchmarkDotNet.Attributes;
public class C
{
private long a;
[Benchmark]
public void Interlocked_Increment()
{
for (int i = 0; i < 1000; i++)
Interlocked.Increment(ref a);
}
} |
@EgorBot -hetzner_amd using BenchmarkDotNet.Attributes;
public class C
{
private long a;
[Benchmark]
public void Interlocked_Increment()
{
for (int i = 0; i < 1000; i++)
Interlocked.Increment(ref a);
}
} |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 1.913 μs | 0.0035 μs |
@EgorBot -hetzner_amd using BenchmarkDotNet.Attributes;
public class C
{
private long a;
[Benchmark]
public void Interlocked_Increment()
{
for (int i = 0; i < 1000; i++)
Interlocked.Increment(ref a);
}
} |
1 similar comment
@EgorBot -hetzner_amd using BenchmarkDotNet.Attributes;
public class C
{
private long a;
[Benchmark]
public void Interlocked_Increment()
{
for (int i = 0; i < 1000; i++)
Interlocked.Increment(ref a);
}
} |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 1.900 μs | 0.0049 μs |
@EgorBot -hetzner_amd using BenchmarkDotNet.Attributes;
public class C
{
private long a;
[Benchmark]
public void Interlocked_Increment()
{
for (int i = 0; i < 1000; i++)
Interlocked.Increment(ref a);
}
} |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 1.908 μs | 0.0085 μs |
@EgorBot -hetzner_ampere -hetzner_icelake -hetzner_milano using BenchmarkDotNet.Attributes;
public class C
{
private long a;
[Benchmark]
public void Interlocked_Increment()
{
for (int i = 0; i < 1000; i++)
Interlocked.Increment(ref a);
}
} |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 5.418 μs | 0.0136 μs |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 4.353 μs | 0.0004 μs |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 6.933 μs | 0.1339 μs |
@EgorBot -commit main -gcp_arm64 -aws_arm64 -aws_amd -hetzner_dedicated_amd -hetzner_milano using BenchmarkDotNet.Attributes;
public class C
{
private long a;
[Benchmark]
public void Interlocked_Increment()
{
for (int i = 0; i < 1000; i++)
Interlocked.Increment(ref a);
}
} |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 1.954 μs | 0.0077 μs |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 4.766 μs | 0.0007 μs |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 2.177 μs | 0.0415 μs |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 1.889 μs | 0.0086 μs |
@EgorBot -commit main -gcp_arm64 -gcp_intel using BenchmarkDotNet.Attributes;
public class C
{
private long a;
[Benchmark]
public void Interlocked_Increment()
{
for (int i = 0; i < 1000; i++)
Interlocked.Increment(ref a);
}
} |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 4.446 μs | 0.0003 μs |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 5.360 μs | 0.0562 μs |
@EgorBot -commit main -aws_cached_genoa using BenchmarkDotNet.Attributes;
public class C
{
private long a;
[Benchmark]
public void Interlocked_Increment()
{
for (int i = 0; i < 1000; i++)
Interlocked.Increment(ref a);
}
} |
Benchmark results on
|
Method | Mean | Error |
---|---|---|
Interlocked_Increment | 1.891 μs | 0.0034 μs |
No description provided.
The text was updated successfully, but these errors were encountered: