public void ItExecutesPerformantly()
{
var code = Component.Statements.UserHasNoRecentTransactions;
var statements = new StatementSet().FromAssemblyOf<UserController>();
var pgrm = DaisyCompiler.Compile<User>(code, statements);
var stopwatch = new Stopwatch();
var iterations = 50000;
stopwatch.Start();
for(int i=0; i<iterations; ++i)
{
pgrm.Execute(Component.TestData.Ben);
}
stopwatch.Stop();
Console.WriteLine("Elapsed: " + stopwatch.ElapsedMilliseconds);
Console.WriteLine("Per execution: " + ((double)stopwatch.ElapsedMilliseconds)/iterations);
Assert.Less(stopwatch.ElapsedMilliseconds, 30000);
}