yep
This commit is contained in:
@@ -10,6 +10,7 @@ namespace Benchmarking
|
||||
public class Benchmarks
|
||||
{
|
||||
private readonly Vector2[] directions;
|
||||
// Consumer is for IEnumerables.
|
||||
private readonly Consumer consumer = new();
|
||||
|
||||
public Benchmarks()
|
||||
@@ -43,9 +44,13 @@ namespace Benchmarking
|
||||
//for (var n = 0; n < 10; n++) directions[n] = new Vector2(rand.Next(-2, 2), rand.Next(-2, 2));
|
||||
}
|
||||
|
||||
//[Benchmark]
|
||||
[Benchmark]
|
||||
public void One()
|
||||
{
|
||||
for(var i=0; i<10000; i++)
|
||||
{
|
||||
Guid.NewGuid();
|
||||
}
|
||||
}
|
||||
|
||||
//[Benchmark]
|
||||
|
||||
Reference in New Issue
Block a user