File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/tests/JIT/Performance/CodeQuality/SIMD/ConsoleMandel Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ private static void PrintUsage()
67
67
[ Fact ]
68
68
public static int TestEntryPoint ( )
69
69
{
70
- return Test ( Array . Empty < string > ( ) ) ;
70
+ Bench ( 0 , - 1 ) ;
71
+ return Pass ;
71
72
}
72
73
73
74
[ MethodImpl ( MethodImplOptions . NoInlining ) ]
@@ -148,7 +149,7 @@ public static void Bench(int iters, int which)
148
149
float ymin = YC - Range ;
149
150
float ymax = YC + Range ;
150
151
float step = Range / 1000f ; // This will render one million pixels
151
- float warm = Range / 100f ; // To warm up, just render 10000 pixels :-)
152
+ float warm = Range / 50f ; // To warm up, just render 2500 pixels :-)
152
153
Algorithms . FractalRenderer . Render [ ] renderers = new Algorithms . FractalRenderer . Render [ 24 ] ;
153
154
// Warm up each renderer
154
155
if ( ! s_silent )
@@ -179,6 +180,10 @@ public static void Bench(int iters, int which)
179
180
{
180
181
Console . WriteLine ( " Run Type : Min Max Average Std-Dev" ) ;
181
182
}
183
+
184
+ // iters == 0: just do warmup runs
185
+ if ( iters == 0 ) return ;
186
+
182
187
for ( int i = firstRenderer ; i <= lastRenderer ; i ++ )
183
188
{
184
189
long totalTime = 0 ;
You can’t perform that action at this time.
0 commit comments