Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2233
Modified Files:
PerformanceTest.cs
Log Message:
Modified PerformanceTest to be more like hibernates
Index: PerformanceTest.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/PerformanceTest.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** PerformanceTest.cs 18 Jun 2004 14:14:27 -0000 1.5
--- PerformanceTest.cs 29 Jul 2004 13:16:39 -0000 1.6
***************
*** 162,167 ****
s.Save(simples[i], ids[i]);
}
! s.Flush();
!
for(int i = 0; i < N; i++)
{
--- 162,166 ----
s.Save(simples[i], ids[i]);
}
!
for(int i = 0; i < N; i++)
{
***************
*** 169,185 ****
}
! s.Flush();
// the results of this test are highly dependent upon
// how many times we flush!
! // hql is throwing perf way off...
! //Assert.IsTrue( s.Delete("from s in class NHibernate.DomainModel.Simple") == n);
!
! IList simpleList = s.CreateCriteria(typeof(Simple)).List();
- for(int i = 0; i < simpleList.Count; i++)
- {
- s.Delete((Simple)simpleList[i]);
- }
s.Flush();
t.Commit();
--- 168,177 ----
}
! //s.Flush();
// the results of this test are highly dependent upon
// how many times we flush!
! Assert.IsTrue( s.Delete("from s in class NHibernate.DomainModel.Simple") == N);
s.Flush();
t.Commit();
|