@@ -19,7 +19,7 @@ public static void Increment_int()
19
19
{
20
20
using ( iteration . StartMeasurement ( ) )
21
21
{
22
- for ( int i = 0 ; i < Benchmark . InnerIterationCount ; i ++ )
22
+ for ( int i = 0 ; i < IterationCount ; i ++ )
23
23
{
24
24
Interlocked . Increment ( ref location ) ;
25
25
}
@@ -36,7 +36,7 @@ public static void Decrement_int()
36
36
{
37
37
using ( iteration . StartMeasurement ( ) )
38
38
{
39
- for ( int i = 0 ; i < Benchmark . InnerIterationCount ; i ++ )
39
+ for ( int i = 0 ; i < IterationCount ; i ++ )
40
40
{
41
41
Interlocked . Decrement ( ref location ) ;
42
42
}
@@ -53,7 +53,7 @@ public void Increment_long()
53
53
{
54
54
using ( iteration . StartMeasurement ( ) )
55
55
{
56
- for ( int i = 0 ; i < Benchmark . InnerIterationCount ; i ++ )
56
+ for ( int i = 0 ; i < IterationCount ; i ++ )
57
57
{
58
58
Interlocked . Increment ( ref location ) ;
59
59
}
@@ -70,7 +70,7 @@ public void Decrement_long()
70
70
{
71
71
using ( iteration . StartMeasurement ( ) )
72
72
{
73
- for ( int i = 0 ; i < Benchmark . InnerIterationCount ; i ++ )
73
+ for ( int i = 0 ; i < IterationCount ; i ++ )
74
74
{
75
75
Interlocked . Decrement ( ref location ) ;
76
76
}
@@ -87,7 +87,7 @@ public void Add_int()
87
87
{
88
88
using ( iteration . StartMeasurement ( ) )
89
89
{
90
- for ( int i = 0 ; i < Benchmark . InnerIterationCount ; i ++ )
90
+ for ( int i = 0 ; i < IterationCount ; i ++ )
91
91
{
92
92
Interlocked . Add ( ref location , 2 ) ;
93
93
}
@@ -104,7 +104,7 @@ public void Add_long()
104
104
{
105
105
using ( iteration . StartMeasurement ( ) )
106
106
{
107
- for ( int i = 0 ; i < Benchmark . InnerIterationCount ; i ++ )
107
+ for ( int i = 0 ; i < IterationCount ; i ++ )
108
108
{
109
109
Interlocked . Add ( ref location , 2 ) ;
110
110
}
@@ -122,7 +122,7 @@ public static void Exchange_int()
122
122
{
123
123
using ( iteration . StartMeasurement ( ) )
124
124
{
125
- for ( int i = 0 ; i < Benchmark . InnerIterationCount ; i ++ )
125
+ for ( int i = 0 ; i < IterationCount ; i ++ )
126
126
{
127
127
Interlocked . Exchange ( ref location , newValue ) ;
128
128
}
@@ -140,7 +140,7 @@ public static void Exchange_long()
140
140
{
141
141
using ( iteration . StartMeasurement ( ) )
142
142
{
143
- for ( int i = 0 ; i < Benchmark . InnerIterationCount ; i ++ )
143
+ for ( int i = 0 ; i < IterationCount ; i ++ )
144
144
{
145
145
Interlocked . Exchange ( ref location , newValue ) ;
146
146
}
@@ -159,7 +159,7 @@ public static void CompareExchange_int()
159
159
{
160
160
using ( iteration . StartMeasurement ( ) )
161
161
{
162
- for ( int i = 0 ; i < Benchmark . InnerIterationCount ; i ++ )
162
+ for ( int i = 0 ; i < IterationCount ; i ++ )
163
163
{
164
164
Interlocked . CompareExchange ( ref location , newValue , comparand ) ;
165
165
}
@@ -178,7 +178,7 @@ public static void CompareExchange_long()
178
178
{
179
179
using ( iteration . StartMeasurement ( ) )
180
180
{
181
- for ( int i = 0 ; i < Benchmark . InnerIterationCount ; i ++ )
181
+ for ( int i = 0 ; i < IterationCount ; i ++ )
182
182
{
183
183
Interlocked . CompareExchange ( ref location , newValue , comparand ) ;
184
184
}
0 commit comments