@@ -40,7 +40,7 @@ public class JitOptimizedSwitchPerfTests
4040 [ CompetitionBaseline ]
4141 public int Test0000Baseline ( )
4242 {
43- int a = 0 ;
43+ var a = 0 ;
4444 for ( var i = 0 ; i < Count ; i ++ )
4545 {
4646 a = DefaultAction ( a ) ;
@@ -53,7 +53,7 @@ public int Test0000Baseline()
5353 [ SuppressMessage ( "ReSharper" , "ConditionIsAlwaysTrueOrFalse" ) ]
5454 public int Test0101ConstDisabledFeature ( )
5555 {
56- int a = 0 ;
56+ var a = 0 ;
5757 for ( var i = 0 ; i < Count ; i ++ )
5858 {
5959#pragma warning disable 162
@@ -70,7 +70,7 @@ public int Test0101ConstDisabledFeature()
7070 [ SuppressMessage ( "ReSharper" , "ConditionIsAlwaysTrueOrFalse" ) ]
7171 public int Test0102IfConstDisabledFeature ( )
7272 {
73- int a = 0 ;
73+ var a = 0 ;
7474 for ( var i = 0 ; i < Count ; i ++ )
7575 {
7676#pragma warning disable 162
@@ -86,7 +86,7 @@ public int Test0102IfConstDisabledFeature()
8686 [ CompetitionBenchmark ( 0.97 , 1.04 ) ]
8787 public int Test0201DisabledFeature ( )
8888 {
89- int a = 0 ;
89+ var a = 0 ;
9090 for ( var i = 0 ; i < Count ; i ++ )
9191 {
9292 if ( _featureDisabled && FeatureCheck ( a ) )
@@ -99,7 +99,7 @@ public int Test0201DisabledFeature()
9999 [ CompetitionBenchmark ( 0.97 , 1.04 ) ]
100100 public int Test0202IfDisabledFeature ( )
101101 {
102- int a = 0 ;
102+ var a = 0 ;
103103 for ( var i = 0 ; i < Count ; i ++ )
104104 {
105105 if ( _featureDisabled )
@@ -113,7 +113,7 @@ public int Test0202IfDisabledFeature()
113113 [ CompetitionBenchmark ( 0.98 , 1.05 ) ]
114114 public int Test0203NotEnabledFeature ( )
115115 {
116- int a = 0 ;
116+ var a = 0 ;
117117 for ( var i = 0 ; i < Count ; i ++ )
118118 {
119119 if ( ! _featureEnabled && FeatureCheck ( a ) )
@@ -126,7 +126,7 @@ public int Test0203NotEnabledFeature()
126126 [ CompetitionBenchmark ( 1.85 , 1.98 ) ]
127127 public int Test0301MutableFeature ( )
128128 {
129- int a = 0 ;
129+ var a = 0 ;
130130 for ( var i = 0 ; i < Count ; i ++ )
131131 {
132132 if ( _featureMutable && FeatureCheck ( a ) )
@@ -139,7 +139,7 @@ public int Test0301MutableFeature()
139139 [ CompetitionBenchmark ( 1.86 , 1.98 ) ]
140140 public int Test0301IfMutableFeature ( )
141141 {
142- int a = 0 ;
142+ var a = 0 ;
143143 for ( var i = 0 ; i < Count ; i ++ )
144144 {
145145 if ( _featureMutable )
@@ -153,7 +153,7 @@ public int Test0301IfMutableFeature()
153153 [ CompetitionBenchmark ( 14.93 , 15.87 ) ]
154154 public int Test0301EnabledFeature ( )
155155 {
156- int a = 0 ;
156+ var a = 0 ;
157157 for ( var i = 0 ; i < Count ; i ++ )
158158 {
159159 if ( _featureEnabled && FeatureCheck ( a ) )
@@ -166,7 +166,7 @@ public int Test0301EnabledFeature()
166166 [ CompetitionBenchmark ( 14.94 , 15.88 ) ]
167167 public int Test0302IfEnabledFeature ( )
168168 {
169- int a = 0 ;
169+ var a = 0 ;
170170 for ( var i = 0 ; i < Count ; i ++ )
171171 {
172172 if ( _featureEnabled )
0 commit comments