Program.cs 946 B

12345678910111213141516171819202122232425262728293031
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the Apache 2.0 License.
  3. // See the LICENSE file in the project root for more information.
  4. using System;
  5. using System.Linq;
  6. using BenchmarkDotNet.Running;
  7. namespace Benchmarks.System.Interactive
  8. {
  9. internal class Program
  10. {
  11. internal static void Main()
  12. {
  13. Console.WriteLine("Effective Ix-version: " + typeof(EnumerableEx).Assembly.GetName().Version);
  14. //Available compiler directives: IX3_1_1, IX3_2, CURRENT.
  15. var switcher = new BenchmarkSwitcher(new[] {
  16. typeof(BufferCountBenchmark),
  17. typeof(IgnoreElementsBenchmark),
  18. typeof(DeferBenchmark),
  19. typeof(RetryBenchmark),
  20. typeof(MinMaxBenchmark)
  21. });
  22. switcher.Run();
  23. Console.ReadLine();
  24. }
  25. }
  26. }