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)
34
for (var i = 0; i <
_items
.Length; i++)
36
_items
[i] = seeds[i % seeds.Length];
39
_collection = new EndpointMetadataCollection(
_items
);
46
var items =
_items
;
49
GC.KeepAlive(
_items
[i] as IMetadata1);
54
GC.KeepAlive(
_items
[i] as IMetadata2);
59
GC.KeepAlive(
_items
[i] as IMetadata3);
64
GC.KeepAlive(
_items
[i] as IMetadata4);
69
GC.KeepAlive(
_items
[i] as IMetadata5);