public void TestTypePerformance()
{
// Note: Due to subspace field harmonics, this test will occasionally fail due to
// something taking a half second longer than it should. Only worry about it if it beings
// failing consistently.
int loopCount = 1000000;
AssertPerformance("Simple", typeof(string), loopCount, new TimeSpan(0, 0, 0, 0, 200));
AssertPerformance(5, typeof(int), loopCount, new TimeSpan(0, 0, 0, 0, 150));
AssertPerformance(5.0, typeof(int), loopCount, new TimeSpan(0, 0, 0, 0, 150));
AssertPerformance(5, typeof(double), loopCount, new TimeSpan(0, 0, 0, 0, 150));
AssertPerformance(5.0, typeof(double), loopCount, new TimeSpan(0, 0, 0, 0, 150));
AssertPerformance("2 NOV 2007", typeof(DateTime), loopCount, new TimeSpan(0, 0, 0, 2, 0));
AssertPerformance("11:35 AM Nov 2 2007", typeof(DateTime), loopCount, new TimeSpan(0, 0, 0, 2, 500));
AssertPerformance("SEQUENCE", typeof(GeneratorType), loopCount, new TimeSpan(0, 0, 0, 1, 200));
AssertPerformance(1, typeof(GeneratorType), loopCount, new TimeSpan(0, 0, 0, 0, 200));
}