1 write to _collection
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointMetadataCollectionBenchmark.cs (1)
39_collection = new EndpointMetadataCollection(_items);
10 references to _collection
Microsoft.AspNetCore.Routing.Microbenchmarks (10)
EndpointMetadataCollectionBenchmark.cs (10)
76GC.KeepAlive(_collection.GetMetadata<IMetadata1>()); 77GC.KeepAlive(_collection.GetMetadata<IMetadata2>()); 78GC.KeepAlive(_collection.GetMetadata<IMetadata3>()); 79GC.KeepAlive(_collection.GetMetadata<IMetadata4>()); 80GC.KeepAlive(_collection.GetMetadata<IMetadata5>()); 86foreach (var item in _collection.GetOrderedMetadata<IMetadata1>()) 91foreach (var item in _collection.GetOrderedMetadata<IMetadata2>()) 96foreach (var item in _collection.GetOrderedMetadata<IMetadata3>()) 101foreach (var item in _collection.GetOrderedMetadata<IMetadata4>()) 106foreach (var item in _collection.GetOrderedMetadata<IMetadata5>())