1
0

Program.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. using Microsoft.VisualStudio.TestTools.UnitTesting;
  8. [assembly:DoNotParallelize] // Not really a test project, but the build tools think we are, and complain if we don't state our parallelization policy.
  9. namespace Benchmarks.System.Reactive
  10. {
  11. internal class Program
  12. {
  13. private static void Main()
  14. {
  15. Console.WriteLine("Effective Rx-version: " + typeof(Observable).Assembly.GetName().Version);
  16. var switcher = new BenchmarkSwitcher([
  17. typeof(ZipBenchmark),
  18. typeof(CombineLatestBenchmark),
  19. typeof(SwitchBenchmark),
  20. typeof(BufferCountBenchmark),
  21. typeof(RangeBenchmark),
  22. typeof(ToObservableBenchmark),
  23. typeof(RepeatBenchmark),
  24. typeof(ComparisonBenchmark),
  25. typeof(ComparisonAsyncBenchmark),
  26. typeof(ScalarScheduleBenchmark),
  27. typeof(StableCompositeDisposableBenchmark),
  28. typeof(SubjectBenchmark),
  29. typeof(ComparisonAsyncBenchmark),
  30. typeof(GroupByCompletion)
  31. #if (CURRENT)
  32. ,typeof(AppendPrependBenchmark)
  33. ,typeof(PrependVsStartWtihBenchmark)
  34. #endif
  35. ]);
  36. switcher.Run();
  37. Console.ReadLine();
  38. }
  39. }
  40. }