@@ -22,7 +22,7 @@ private static void Base64Encode(int numberOfBytes)
2222 Base64TestHelper . InitalizeBytes ( source ) ;
2323 Span < byte > destination = new byte [ Base64 . GetMaxEncodedToUtf8Length ( numberOfBytes ) ] ;
2424
25- foreach ( var iteration in Benchmark . Iterations )
25+ foreach ( BenchmarkIteration iteration in Benchmark . Iterations )
2626 {
2727 using ( iteration . StartMeasurement ( ) )
2828 {
@@ -47,7 +47,7 @@ private static void Base64EncodeDestinationTooSmall(int numberOfBytes)
4747 Base64TestHelper . InitalizeBytes ( source ) ;
4848 Span < byte > destination = new byte [ Base64 . GetMaxEncodedToUtf8Length ( numberOfBytes ) - 1 ] ;
4949
50- foreach ( var iteration in Benchmark . Iterations )
50+ foreach ( BenchmarkIteration iteration in Benchmark . Iterations )
5151 {
5252 using ( iteration . StartMeasurement ( ) )
5353 {
@@ -68,7 +68,7 @@ private static void Base64EncodeBaseline(int numberOfBytes)
6868 Base64TestHelper . InitalizeBytes ( source . AsSpan ( ) ) ;
6969 var destination = new char [ Base64 . GetMaxEncodedToUtf8Length ( numberOfBytes ) ] ;
7070
71- foreach ( var iteration in Benchmark . Iterations )
71+ foreach ( BenchmarkIteration iteration in Benchmark . Iterations )
7272 {
7373 using ( iteration . StartMeasurement ( ) )
7474 {
@@ -90,7 +90,7 @@ private static void Base64Decode(int numberOfBytes)
9090 Span < byte > encoded = new byte [ Base64 . GetMaxEncodedToUtf8Length ( numberOfBytes ) ] ;
9191 Base64 . EncodeToUtf8 ( source , encoded , out _ , out _ ) ;
9292
93- foreach ( var iteration in Benchmark . Iterations )
93+ foreach ( BenchmarkIteration iteration in Benchmark . Iterations )
9494 {
9595 using ( iteration . StartMeasurement ( ) )
9696 {
@@ -118,7 +118,7 @@ private static void Base64DecodeDetinationTooSmall(int numberOfBytes)
118118
119119 source = source . Slice ( 0 , source . Length - 1 ) ;
120120
121- foreach ( var iteration in Benchmark . Iterations )
121+ foreach ( BenchmarkIteration iteration in Benchmark . Iterations )
122122 {
123123 using ( iteration . StartMeasurement ( ) )
124124 {
@@ -139,7 +139,7 @@ private static void Base64DecodeBaseline(int numberOfBytes)
139139 Base64TestHelper . InitalizeBytes ( source ) ;
140140 ReadOnlySpan < char > encoded = Convert . ToBase64String ( source . ToArray ( ) ) . ToCharArray ( ) ;
141141
142- foreach ( var iteration in Benchmark . Iterations )
142+ foreach ( BenchmarkIteration iteration in Benchmark . Iterations )
143143 {
144144 using ( iteration . StartMeasurement ( ) )
145145 {
@@ -164,7 +164,7 @@ private static void Base64EncodeInPlace(int numberOfBytes)
164164 Span < byte > backupSpan = decodedSpan . ToArray ( ) ;
165165
166166 int bytesWritten = 0 ;
167- foreach ( var iteration in Benchmark . Iterations )
167+ foreach ( BenchmarkIteration iteration in Benchmark . Iterations )
168168 {
169169 using ( iteration . StartMeasurement ( ) )
170170 {
@@ -193,7 +193,7 @@ private static void Base64EncodeInPlaceOnce(int numberOfBytes)
193193 Span < byte > backupSpan = decodedSpan . ToArray ( ) ;
194194
195195 int bytesWritten = 0 ;
196- foreach ( var iteration in Benchmark . Iterations )
196+ foreach ( BenchmarkIteration iteration in Benchmark . Iterations )
197197 {
198198 backupSpan . CopyTo ( decodedSpan ) ;
199199 using ( iteration . StartMeasurement ( ) )
@@ -223,7 +223,7 @@ private static void Base64DecodeInPlace(int numberOfBytes)
223223 Span < byte > backupSpan = encodedSpan . ToArray ( ) ;
224224
225225 int bytesWritten = 0 ;
226- foreach ( var iteration in Benchmark . Iterations )
226+ foreach ( BenchmarkIteration iteration in Benchmark . Iterations )
227227 {
228228 using ( iteration . StartMeasurement ( ) )
229229 {
@@ -248,7 +248,7 @@ private static void Base64DecodeInPlaceOnce(int numberOfBytes)
248248 Span < byte > encodedSpan = new byte [ length ] ;
249249
250250 int bytesWritten = 0 ;
251- foreach ( var iteration in Benchmark . Iterations )
251+ foreach ( BenchmarkIteration iteration in Benchmark . Iterations )
252252 {
253253 Base64 . EncodeToUtf8 ( source , encodedSpan , out _ , out _ ) ;
254254 using ( iteration . StartMeasurement ( ) )
0 commit comments