public void EmptyChildrenContainer_add_children_speed_test(BenchmarkContext context) { var name = nameCounter++.ToString(); _emptyContainer = _emptyContainer.Add(name, new ChildRestartStats(new PlaceHolderActorRef(name))); _childContainerOpsCounter.Increment(); }
public void Setup(BenchmarkContext context) { _emptyContainer = EmptyChildrenContainer.Instance; _fullContainer = EmptyChildrenContainer.Instance; for (var i = 0; i < PrePopulatedActorCount; i++) { var name = i.ToString(); _fullContainer.Add(name, new ChildRestartStats(new PlaceHolderActorRef(name))); } _childContainerOpsCounter = context.GetCounter(ChildContainerOperationsName); nameCounter = 0; }