Program.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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. #if (CURRENT)
  23. ,typeof(AppendPrependBenchmark)
  24. #endif
  25. });
  26. switcher.Run();
  27. Console.ReadLine();
  28. }
  29. }
  30. }