Program.cs 1005 B

1234567891011121314151617181920212223242526272829303132
  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(string[] args)
  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. typeof(AsyncReturnBenchmark)
  22. });
  23. switcher.Run();
  24. Console.ReadLine();
  25. }
  26. }
  27. }