static void Main(string[] args) { var folderPath = args.Length > 0 ? args[0] : Environment.CurrentDirectory; var sw = Stopwatch.StartNew(); sw.Start(); var parser = new DirectoryParser(); var logs = parser.Parse(folderPath); SaveToStorage(logs); //var ap = (from l in logs // where l?.Url != null && l.Url.Contains("ap_interface.php") // select l).ToList(); //Console.WriteLine("Max: " + ap.Max(x => x.MicroSeconds) /1000000.0); //Console.WriteLine("Avg: " + ap.Average(x => x.MicroSeconds) /1000000.0); sw.Stop(); Console.WriteLine(sw.Elapsed.ToString()); }
public void Test() { var target = new DirectoryParser(); var result = target.Parse(Environment.CurrentDirectory); Assert.Equal(576, result.Count()); }