Hi, On Wed, Sep 30, 2009 at 7:18 PM, Matt Brown <mrbrow...@gmail.com> wrote:
> Using a million iterations, I got: > (myavgtime (+ 1 2 3) 1e6 mytime1) -> 0.00027 - 0.00029 msec (over a > dozen repeats) > (myavgtime (+ 1 2 3) 1e6 mytime2) -> 0.00068 msec (single run, > printing 10^6 lines takes a long time, I was too impatient for > repeats) > What if the CPU goes to the terminal process while your code is between two calls to (. System nanoTime)? Are you using a single core? which repl? Christophe -- Professional: http://cgrand.net/ (fr) On Clojure: http://clj-me.blogspot.com/ (en) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---