CombineLatestBenchmark.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 BenchmarkDotNet.Attributes;
  5. using ReactiveTests.Tests;
  6. namespace Benchmarks.System.Reactive
  7. {
  8. [MemoryDiagnoser]
  9. public class CombineLatestBenchmark
  10. {
  11. private readonly CombineLatestTest _zipTest = new();
  12. [Benchmark]
  13. public void CombineLatest_Typical2()
  14. {
  15. _zipTest.CombineLatest_Typical2();
  16. }
  17. [Benchmark]
  18. public void CombineLatest_Typical3()
  19. {
  20. _zipTest.CombineLatest_Typical3();
  21. }
  22. [Benchmark]
  23. public void CombineLatest_Typical4()
  24. {
  25. _zipTest.CombineLatest_Typical4();
  26. }
  27. [Benchmark]
  28. public void CombineLatest_Typical5()
  29. {
  30. _zipTest.CombineLatest_Typical5();
  31. }
  32. [Benchmark]
  33. public void CombineLatest_Typical6()
  34. {
  35. _zipTest.CombineLatest_Typical6();
  36. }
  37. [Benchmark]
  38. public void CombineLatest_Typical7()
  39. {
  40. _zipTest.CombineLatest_Typical7();
  41. }
  42. [Benchmark]
  43. public void CombineLatest_Typical8()
  44. {
  45. _zipTest.CombineLatest_Typical8();
  46. }
  47. [Benchmark]
  48. public void CombineLatest_Typical9()
  49. {
  50. _zipTest.CombineLatest_Typical9();
  51. }
  52. [Benchmark]
  53. public void CombineLatest_Typical10()
  54. {
  55. _zipTest.CombineLatest_Typical10();
  56. }
  57. [Benchmark]
  58. public void CombineLatest_Typical11()
  59. {
  60. _zipTest.CombineLatest_Typical11();
  61. }
  62. [Benchmark]
  63. public void CombineLatest_Typical12()
  64. {
  65. _zipTest.CombineLatest_Typical12();
  66. }
  67. [Benchmark]
  68. public void CombineLatest_Typical13()
  69. {
  70. _zipTest.CombineLatest_Typical13();
  71. }
  72. [Benchmark]
  73. public void CombineLatest_Typical14()
  74. {
  75. _zipTest.CombineLatest_Typical14();
  76. }
  77. [Benchmark]
  78. public void CombineLatest_Typical15()
  79. {
  80. _zipTest.CombineLatest_Typical15();
  81. }
  82. [Benchmark]
  83. public void CombineLatest_Typical16()
  84. {
  85. _zipTest.CombineLatest_Typical16();
  86. }
  87. }
  88. }