On Sun, Aug 30, 2009 at 10:40 AM, Jason Baker <[email protected]> wrote:
>
> I've written a test that does this:
>
> public void ReadFile(TextReader infile)
> {
> using (var text_reader = new PushbackTextReader(infile)) {
> LispReader.read(text_reader, false, null, true);
> }
> }
>
> ...in a loop. I'm running this operation a specified number of times
> and then getting an average runtime. The thing is, if I run this more
> times, the average time goes down. Is something getting cached and/or
> memoized somewhere, or is this just a bad way to test performance?
>
> (And FYI, the TextReader that's getting passed in is a StringReader so
> I can eliminate I/O time from the results)
Given that last, I/O buffering and OS disk caching seem doubtful. JIT
perhaps.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---