@@ -26,7 +26,7 @@ public class SketchFrequency
2626
2727 private CmSketchCore < int , DisableHardwareIntrinsics > blockStd ;
2828 private CmSketchNoPin < int , DetectIsa > blockAvxNoPin ;
29- private CmSketchCore < int , DetectIsa > blockVector ;
29+ private CmSketchCore < int , DetectIsa > blockAvx ;
3030
3131 [ Params ( 32_768 , 524_288 , 8_388_608 , 134_217_728 ) ]
3232 public int Size { get ; set ; }
@@ -39,7 +39,7 @@ public void Setup()
3939
4040 blockStd = new CmSketchCore < int , DisableHardwareIntrinsics > ( Size , EqualityComparer < int > . Default ) ;
4141 blockAvxNoPin = new CmSketchNoPin < int , DetectIsa > ( Size , EqualityComparer < int > . Default ) ;
42- blockVector = new CmSketchCore < int , DetectIsa > ( Size , EqualityComparer < int > . Default ) ;
42+ blockAvx = new CmSketchCore < int , DetectIsa > ( Size , EqualityComparer < int > . Default ) ;
4343 }
4444
4545 [ Benchmark ( Baseline = true , OperationsPerInvoke = iterations ) ]
@@ -81,7 +81,7 @@ public int FrequencyBlockAvxNotPinned()
8181 {
8282 int count = 0 ;
8383 for ( int i = 0 ; i < iterations ; i ++ )
84- count += blockAvxNoPin . EstimateFrequency ( i ) > blockVector . EstimateFrequency ( i + 1 ) ? 1 : 0 ;
84+ count += blockAvxNoPin . EstimateFrequency ( i ) > blockAvx . EstimateFrequency ( i + 1 ) ? 1 : 0 ;
8585
8686 return count ;
8787 }
@@ -96,7 +96,7 @@ public int FrequencyBlockAvxPinned()
9696 {
9797 int count = 0 ;
9898 for ( int i = 0 ; i < iterations ; i ++ )
99- count += blockVector . EstimateFrequency ( i ) > blockVector . EstimateFrequency ( i + 1 ) ? 1 : 0 ;
99+ count += blockAvx . EstimateFrequency ( i ) > blockAvx . EstimateFrequency ( i + 1 ) ? 1 : 0 ;
100100
101101 return count ;
102102 }
0 commit comments