Program.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT 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([
  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. typeof(GroupByCompletion)
  29. #if (CURRENT)
  30. ,typeof(AppendPrependBenchmark)
  31. ,typeof(PrependVsStartWtihBenchmark)
  32. #endif
  33. ]);
  34. switcher.Run();
  35. Console.ReadLine();
  36. }
  37. }
  38. }