1 write to _items
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointMetadataCollectionBenchmark.cs (1)
33_items = new object[Count];
9 references to _items
Microsoft.AspNetCore.Routing.Microbenchmarks (9)
EndpointMetadataCollectionBenchmark.cs (9)
34for (var i = 0; i < _items.Length; i++) 36_items[i] = seeds[i % seeds.Length]; 39_collection = new EndpointMetadataCollection(_items); 46var items = _items; 49GC.KeepAlive(_items[i] as IMetadata1); 54GC.KeepAlive(_items[i] as IMetadata2); 59GC.KeepAlive(_items[i] as IMetadata3); 64GC.KeepAlive(_items[i] as IMetadata4); 69GC.KeepAlive(_items[i] as IMetadata5);