This test was taking too long to run on x86. After investigation, it
does not appear that there is a fundamental problem with the code
generated for the test; rather, it seems that we are running an
excessive number of iterations when using this test as a correctness
test. This change reduces the number of times we run each case from 10
to 1 unless otherwise specified on the command line.
// Main method entrypoint runs the manual timer loop
- public static int Main()
+ public static int Main(string[] args)
{
int failures = 0;
InnerIterations = 100000;
}
+ int manualLoopCount = (args != null && args.Length >= 1) ? int.Parse(args[0]) : 1;
foreach(int index in IndicesToTest)
{
- ManualLoopTimes = new long[10];
+ ManualLoopTimes = new long[manualLoopCount];
bool passed = Test(index, false);
if (!passed)
{