Program.cs 986 B

12345678910111213141516171819202122232425262728293031323334
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT 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. #if !NET6_0_OR_GREATER
  21. ,
  22. typeof(MinMaxBenchmark)
  23. #endif
  24. });
  25. switcher.Run();
  26. Console.ReadLine();
  27. }
  28. }
  29. }