/Rhino.Etl.Tests/LoadTest/LoadTestJoinsFixture.cs

http://github.com/ayende/rhino-etl · C# · 23 lines · 20 code · 3 blank · 0 comment · 0 complexity · 6ad1cd3cf38a9d13efc8bf9889ff2e06 MD5 · raw file

  1. namespace Rhino.Etl.Tests.LoadTest
  2. {
  3. using System.Diagnostics;
  4. using Xunit;
  5. public class LoadTestJoinsFixture
  6. {
  7. [Fact(Skip = "It depends too much of what the machine is doing and how powerful it is")]
  8. public void CanDoLargeJoinsefficently()
  9. {
  10. Stopwatch stopwatch = Stopwatch.StartNew();
  11. using(Join_250_000_UsersWithMostlyFallingOut proc = new Join_250_000_UsersWithMostlyFallingOut())
  12. {
  13. proc.Execute();
  14. Assert.Equal(15000, proc.operation.count);
  15. }
  16. stopwatch.Stop();
  17. Assert.True(stopwatch.ElapsedMilliseconds < 1000);
  18. }
  19. }
  20. }