Program.cs 821 B

12345678910111213141516171819202122232425262728
  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. });
  19. switcher.Run();
  20. Console.ReadLine();
  21. }
  22. }
  23. }