private IPlayerBattleResult ProcessCase(BenchmarkCase benchmark, Summary summary) { IPlayerBattleResult result = Factory.Get <IPlayerBattleResult>(); result.Player = Factory.Get <IWrittenByAttribute>(); result.Player.Name = benchmark.DisplayInfo; result.Player.Name = result.Player.Name.Replace("DefaultJob", ""); double executionTime = GetAverageExecutionTime(benchmark, summary); double standardDeviation = GetStandardDeviation(benchmark, summary); long memoryAllocated = GetMemoryAllocated(benchmark, summary); result.Efficiency = Factory.Get <IEfficiencyResult>(); result.Efficiency.AverageExecutionTime = executionTime; result.Efficiency.StandardDeviation = standardDeviation; result.Efficiency.MemoryAllocated = memoryAllocated; return(result); }
public IPlayerBattleResult Get(string player) { IPlayerBattleResult result = Results.Where((battleResult) => battleResult.Player.Name == player).FirstOrDefault(); return(result); }
public void Add(IPlayerBattleResult result, ISenseiAttribute sensei) { Results.Add(result); Sensei = sensei; }
private double CalculateMargin(IPlayerBattleResult result) { return(minStdDev * MarginScalar); }