public void CanDoLargeJoinsefficently() { Stopwatch stopwatch = Stopwatch.StartNew(); using(Join_250_000_UsersWithMostlyFallingOut proc = new Join_250_000_UsersWithMostlyFallingOut()) { proc.Execute(); Assert.AreEqual(15000, proc.operation.count); } stopwatch.Stop(); Assert.Less(stopwatch.ElapsedMilliseconds, 1000); }
public void CanDoLargeJoinsEfficiently() { Stopwatch stopwatch = Stopwatch.StartNew(); using (Join_250_000_UsersWithMostlyFallingOut proc = new Join_250_000_UsersWithMostlyFallingOut()) { proc.Execute(); Assert.Equal(15000, proc.operation.count); } stopwatch.Stop(); Assert.True(stopwatch.ElapsedMilliseconds < 1000); }