Program.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. typeof(ScalarScheduleBenchmark),
  25. typeof(StableCompositeDisposableBenchmark),
  26. typeof(SubjectBenchmark),
  27. typeof(ComparisonAsyncBenchmark)
  28. #if (CURRENT)
  29. ,typeof(AppendPrependBenchmark)
  30. #endif
  31. });
  32. switcher.Run();
  33. Console.ReadLine();
  34. }
  35. }
  36. }