Benchmark for execution test written
This commit is contained in:
@@ -18,17 +18,6 @@ public class ConcurrentTest
|
||||
[Test]
|
||||
public void ParallelAlloc()
|
||||
{
|
||||
Parallel.For(0, 100, i =>
|
||||
{
|
||||
var data = _cmm.AllocSlice(1);
|
||||
data.Span[0] = 1;
|
||||
});
|
||||
|
||||
var total = _cmm.AllocSlice(100).Span;
|
||||
if (total.IndexOf((byte)0) == -1)
|
||||
{
|
||||
Assert.Pass();
|
||||
}
|
||||
Assert.Fail();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user