4 instantiations of Foo
Microsoft.Extensions.ObjectPool.Microbenchmark (4)
DrainRefillMultiTheaded.cs (1)
30
_pool.Return(new
Foo
());
DrainRefillSingleThreaded.cs (1)
25
_pool.Return(new
Foo
());
GetReturnMultiThreaded.cs (1)
28
_pool.Return(new
Foo
());
GetReturnSingleThreaded.cs (1)
20
_pool.Return(new
Foo
());
19 references to Foo
Microsoft.Extensions.ObjectPool.Microbenchmark (19)
DrainRefillMultiTheaded.cs (7)
13
private DefaultObjectPool<
Foo
> _pool = null!;
14
private
Foo
[][] _stores = null!;
27
_pool = new DefaultObjectPool<
Foo
>(new DefaultPooledObjectPolicy<
Foo
>(), Count);
33
_stores = new
Foo
[ThreadCount][];
36
_stores[i] = new
Foo
[Count];
72
private void BenchmarkLoop(
Foo
[] store)
DrainRefillSingleThreaded.cs (5)
13
private DefaultObjectPool<
Foo
> _pool = null!;
14
private
Foo
[] _store = null!;
22
_pool = new DefaultObjectPool<
Foo
>(new DefaultPooledObjectPolicy<
Foo
>(), Count);
28
_store = new
Foo
[Count];
GetReturnMultiThreaded.cs (4)
15
private DefaultObjectPool<
Foo
> _pool = null!;
25
_pool = new DefaultObjectPool<
Foo
>(new DefaultPooledObjectPolicy<
Foo
>(), Count);
66
var
o = _pool.Get();
GetReturnSingleThreaded.cs (3)
12
private DefaultObjectPool<
Foo
> _pool = null!;
17
_pool = new DefaultObjectPool<
Foo
>(new DefaultPooledObjectPolicy<
Foo
>(), Count);