From: Michael D. <mik...@us...> - 2004-06-18 14:14:44
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9916/NHibernate.Test Modified Files: PerformanceTest.cs Log Message: Minor mods because of changes in ConnectionProvider. Index: PerformanceTest.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/PerformanceTest.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PerformanceTest.cs 8 Jun 2004 11:47:37 -0000 1.4 --- PerformanceTest.cs 18 Jun 2004 14:14:27 -0000 1.5 *************** *** 27,31 **** /// </para> /// <para> ! /// Currently (2004-05-26) NHibernate adds about 20% overhead versus a straight DataReader when /// the exact same sql is issued. NHibernate's DriverConnectionProvider has not implemented a /// Connection Cache or Prepared IDbCommand cache yet. No cache was configured for the class Simple for --- 27,32 ---- /// </para> /// <para> ! /// Currently (2004-05-26) NHibernate adds about 20% overhead with everything on the same machine/6% overhead ! /// with Sql Server on a different machine compared to a straight DataReader when /// the exact same sql is issued. NHibernate's DriverConnectionProvider has not implemented a /// Connection Cache or Prepared IDbCommand cache yet. No cache was configured for the class Simple for *************** *** 113,117 **** s = sessions.OpenSession(); Hibernate(s, simples, ids, n, "h" + runIndex.ToString()); - s.Connection.Close(); s.Close(); } --- 114,117 ---- *************** *** 132,136 **** System.Console.Out.Write("NHibernate: " + hiber + "ms / Direct ADO.NET: " + adonet + "ms = Ratio: " + (((float)hiber/adonet)).ToString() ); ! //cp.Close(); System.GC.Collect(); } --- 132,136 ---- System.Console.Out.Write("NHibernate: " + hiber + "ms / Direct ADO.NET: " + adonet + "ms = Ratio: " + (((float)hiber/adonet)).ToString() ); ! cp.Close(); System.GC.Collect(); } |