:( stupid Linux console being faster than Windows' console (it took my computer 
183 times longer to dump the XML!)

--
Mike Caron

-----Original Message-----
From: Bob the Hamster <b...@hamsterrepublic.com>
Date: Thu, 8 Apr 2010 08:40:16 
To: <ohrrpgce@lists.motherhamster.org>
Subject: Re: [Ohrrpgce] SVN: pkmnfrk/3468 Reworking reloadtest.bas into a
        unit test of the key features of RELOAD

On Wed, Apr 7, 2010 at 11:39 PM, Mike Caron <caron.m...@gmail.com> wrote:
>
> As of two revisions ago, you also get timing information! On my system, it
> looks like:
>
> Test #1: createDocument... Pass
> Took 2 µs
> Test #2: addRootNode... Pass
> Took 33 µs
> Test #3: addSmallInteger... Pass
> Took 9 µs
> Test #4: addLargeInteger... Pass
> Took 4 µs
> Test #5: addFloat... Pass
> Took 10 µs
> Test #6: addString... Pass
> Took 22 µs
> Test #7: addEmpty... Pass
> Took 7 µs
> Test #8: addNested... Pass
> Took 210 µs
> Test #9: helperFunctions... Pass
> Took 125 µs
> Test #10: serializeXML...
> <root>
>        *snip*
> </root>
> Pass
> Took 71 ms
> Test #11: writeFile... Pass
> Took 11 ms
> Test #12: loadFile... Pass
> Took 1 ms
> Test #13: compareDocuments... Pass
> Took 8 µs
> Test #14: freeDocument... Pass
> Took 42 µs
>
> Actually, this is a bit surprising. For some reason, writing the document to
> disk is always considerably slower than reading from disk. Probably because
> of all the string table searches... Fortunately, loading is much faster, and
> when I implement delay loading, this time will generally be very quick
> indeed (at the expense of future tree navigation, of course...)
> --
> Mike

Here are my results:

Test #1: createDocument... Pass
Took 8 μs
Test #2: addRootNode... Pass
Took 4 μs
Test #3: addSmallInteger... Pass
Took 7 μs
Test #4: addLargeInteger... Pass
Took 1 μs
Test #5: addFloat... Pass
Took 2 μs
Test #6: addString... Pass
Took 5 μs
Test #7: addEmpty... Pass
Took 2 μs
Test #8: addNested... Pass
Took 10 μs
Test #9: helperFunctions... Pass
Took 10 μs
Test #10: serializeXML...
<root>
 *snip*
</root>
Pass
Took 383 μs
Test #11: writeFile... Pass
Took 690 μs
Test #12: loadFile... Pass
Took 84 μs
Test #13: compareDocuments... Pass
Took 3 μs
Test #14: freeDocument... Pass
Took 7 μs
_______________________________________________
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
_______________________________________________
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to