public void EnvironmentUserName() { var output = Console.Out; _environment = new EnvironmentWrap(); SpeedTesting.Do(output, 5, 2000, (r) => environment_username(r), (r) => environment_username_wrapper(r)); }
public void ThroughtputTime() { var tester1 = new FirstCallTester(Console.Out); var tester2 = new FirstCallTester(Console.Out); var real = CreateRealProxy(tester1); var unity = CreateUnityInerceptor(tester2); SpeedTesting.Do(Console.Out, 5, 10000, (r) => RealTime(r, real), (r) => UnityTime(r, unity)); }
public void DateTimeNow_callManyTimes() { var output = Console.Out; _dateTime = new DateTimeSystem(); SpeedTesting.Do(output, 5, 200000, (r) => date_time_now(r), (r) => date_time_now_wapper(r)); }