1
0

ZipBenchmark.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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 BenchmarkDotNet.Attributes;
  5. using ReactiveTests.Tests;
  6. namespace Benchmarks.System.Reactive
  7. {
  8. [MemoryDiagnoser]
  9. public class ZipBenchmark
  10. {
  11. private ZipTest _zipTest = new ZipTest();
  12. [Benchmark]
  13. public void Zip_NAry_Asymmetric()
  14. {
  15. _zipTest.Zip_NAry_Asymmetric();
  16. }
  17. [Benchmark]
  18. public void Zip_NAry_Asymmetric_Selector()
  19. {
  20. _zipTest.Zip_NAry_Asymmetric_Selector();
  21. }
  22. [Benchmark]
  23. public void Zip_NAry_Symmetric()
  24. {
  25. _zipTest.Zip_NAry_Symmetric();
  26. }
  27. [Benchmark]
  28. public void Zip_NAry_Symmetric_Selector()
  29. {
  30. _zipTest.Zip_NAry_Symmetric_Selector();
  31. }
  32. [Benchmark]
  33. public void Zip_NAry_Enumerable_Simple()
  34. {
  35. _zipTest.Zip_NAry_Enumerable_Simple();
  36. }
  37. [Benchmark]
  38. public void Zip_AllCompleted2()
  39. {
  40. _zipTest.Zip_AllCompleted2();
  41. }
  42. [Benchmark]
  43. public void Zip_AllCompleted3()
  44. {
  45. _zipTest.Zip_AllCompleted3();
  46. }
  47. [Benchmark]
  48. public void Zip_AllCompleted4()
  49. {
  50. _zipTest.Zip_AllCompleted4();
  51. }
  52. [Benchmark]
  53. public void Zip_AllCompleted5()
  54. {
  55. _zipTest.Zip_AllCompleted5();
  56. }
  57. [Benchmark]
  58. public void Zip_AllCompleted6()
  59. {
  60. _zipTest.Zip_AllCompleted6();
  61. }
  62. [Benchmark]
  63. public void Zip_AllCompleted7()
  64. {
  65. _zipTest.Zip_AllCompleted7();
  66. }
  67. [Benchmark]
  68. public void Zip_AllCompleted8()
  69. {
  70. _zipTest.Zip_AllCompleted8();
  71. }
  72. [Benchmark]
  73. public void Zip_AllCompleted9()
  74. {
  75. _zipTest.Zip_AllCompleted9();
  76. }
  77. [Benchmark]
  78. public void Zip_AllCompleted10()
  79. {
  80. _zipTest.Zip_AllCompleted10();
  81. }
  82. [Benchmark]
  83. public void Zip_AllCompleted11()
  84. {
  85. _zipTest.Zip_AllCompleted11();
  86. }
  87. [Benchmark]
  88. public void Zip_AllCompleted12()
  89. {
  90. _zipTest.Zip_AllCompleted12();
  91. }
  92. [Benchmark]
  93. public void Zip_AllCompleted13()
  94. {
  95. _zipTest.Zip_AllCompleted13();
  96. }
  97. [Benchmark]
  98. public void Zip_AllCompleted14()
  99. {
  100. _zipTest.Zip_AllCompleted14();
  101. }
  102. [Benchmark]
  103. public void Zip_AllCompleted15()
  104. {
  105. _zipTest.Zip_AllCompleted15();
  106. }
  107. [Benchmark]
  108. public void Zip_AllCompleted16()
  109. {
  110. _zipTest.Zip_AllCompleted16();
  111. }
  112. }
  113. }