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)
13private DefaultObjectPool<Foo> _pool = null!; 14private Foo[][] _stores = null!; 27_pool = new DefaultObjectPool<Foo>(new DefaultPooledObjectPolicy<Foo>(), Count); 33_stores = new Foo[ThreadCount][]; 36_stores[i] = new Foo[Count]; 72private void BenchmarkLoop(Foo[] store)
DrainRefillSingleThreaded.cs (5)
13private DefaultObjectPool<Foo> _pool = null!; 14private Foo[] _store = null!; 22_pool = new DefaultObjectPool<Foo>(new DefaultPooledObjectPolicy<Foo>(), Count); 28_store = new Foo[Count];
GetReturnMultiThreaded.cs (4)
15private DefaultObjectPool<Foo> _pool = null!; 25_pool = new DefaultObjectPool<Foo>(new DefaultPooledObjectPolicy<Foo>(), Count); 66var o = _pool.Get();
GetReturnSingleThreaded.cs (3)
12private DefaultObjectPool<Foo> _pool = null!; 17_pool = new DefaultObjectPool<Foo>(new DefaultPooledObjectPolicy<Foo>(), Count);