Using NLog's BenchMark class:

http://tinyurl.com/dr2kk
http://svn.sav.net/repos/nlog/trunk/NLog/src/NLog.Benchmark/Benchmark.cs

I ran this code in Release mode with the log level set to ALL on a
project I'm working on:

StopWatch stopWatch = new StopWatch();
stopWatch.Start();
IBatisNet.DataMapper.Mapper.Instance();
stopWatch.Stop();
log.Debug(String.Format("Ticks: [{0}] Nanoseconds: [{1}]",
stopWatch.Ticks, stopWatch.Nanoseconds));

After every run I re-built the solution:

And came up with these results:

Revision 230665
Ticks: [10165193] Nanoseconds: [2839800309.81591]
Ticks: [10690136] Nanoseconds: [2986451071.29537]
Ticks: [10155260] Nanoseconds: [2837025376.13021]
Ticks: [10887478] Nanoseconds: [3041581541.78813]
Ticks: [10944441] Nanoseconds: [3057495016.82476]
Ticks: [10156300] Nanoseconds: [2837315915.84964]

Revision 323848 (new code using DeSerlizer classes)
Ticks: [1218442] Nanoseconds: [340390189.255897]
Ticks: [1314536] Nanoseconds: [367235500.601333]
Ticks: [1276841] Nanoseconds: [356704832.597439]

I have the patch for IBATISNET-100 applied.

This was just a quick test so your numbers may be different.

--- Shawn Smiley <[EMAIL PROTECTED]> wrote:

> In running a single test fixture, I saw the execution
> time for 14 tests decrease from 15.95 seconds to 12.26
> seconds by making a call to iBatis in the
> [TestFixtureSetup].
> 
> These tests are also run with all log4net/ibatis debug
> information turned off and using the console appender
> with the log level set to ERROR.
> 
> I've also implemented something similar in my asp.net
> app where I make the iBatis call in the global.asax
> application_start event.  I don't have any solid
> information on if/how much improvement this caused,
> but my "feeling" is that it helps the initial screen
> (login) by about 10-25%.
> 
> 
> --- Ron Grabowski <[EMAIL PROTECTED]> wrote:
> 
> > I've never done any formal testing on the startup
> > time for ibatis. Do
> > you have any idea how much "faster" the startup time
> > is now? Two or
> > three times faster?
> > 
> > --- Gilles Bayon <[EMAIL PROTECTED]> wrote:
> > 
> > > You could also use the version in SVN, which
> > remove the usage of 
> > > XmlSerialization for init ans speed up the loading
> > of config file.
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 

Reply via email to