Program.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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(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. ,typeof(PrependVsStartWtihBenchmark)
  31. #endif
  32. });
  33. switcher.Run();
  34. Console.ReadLine();
  35. }
  36. }
  37. }