PageRenderTime 243ms CodeModel.GetById 131ms app.highlight 1ms RepoModel.GetById 109ms app.codeStats 1ms

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