Program.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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.Reactive.Linq;
  6. using BenchmarkDotNet.Running;
  7. namespace Benchmarks.System.Reactive
  8. {
  9. internal class Program
  10. {
  11. private static void Main()
  12. {
  13. Console.WriteLine("Effective Rx-version: " + typeof(Observable).Assembly.GetName().Version);
  14. var switcher = new BenchmarkSwitcher(new[] {
  15. typeof(ZipBenchmark),
  16. typeof(CombineLatestBenchmark),
  17. typeof(SwitchBenchmark),
  18. typeof(BufferCountBenchmark),
  19. typeof(RangeBenchmark),
  20. typeof(ToObservableBenchmark),
  21. typeof(RepeatBenchmark),
  22. typeof(ComparisonBenchmark),
  23. typeof(ComparisonAsyncBenchmark)
  24. #if (CURRENT)
  25. ,typeof(AppendPrependBenchmark)
  26. #endif
  27. });
  28. switcher.Run();
  29. Console.ReadLine();
  30. }
  31. }
  32. }