Program.cs 902 B

123456789101112131415161718192021222324252627282930
  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. class Program
  10. {
  11. 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(MinMaxBenchmark),
  20. });
  21. switcher.Run();
  22. Console.ReadLine();
  23. }
  24. }
  25. }