public void InfervertPerformsAdequately() { var testVals = new Dictionary<string, Type>() { {"abc", typeof(string)}, {"3.01", typeof(decimal)}, {"197", typeof(int)}, {"True", typeof(bool)}, {"2010-10-31 00:00:00.000", typeof(DateTime)} }; var db = new FileDB(""); Action<string,Type> fn = (str, type) => Assert.AreEqual(type, db.Infervert(str).GetType()); var time = fn.Benchmark(testVals.Repeat(5000)); // We should be able to do this in under 200ms (arbitrary number) // On my machine, runtimes are 18-25ms // The old version was ~850ms Assert.Less(time, 200, "Infervert is too slow!"); }