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)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---