On Wed, Feb 18, 2009 at 8:50 AM, David Nolen <dnolen.li...@gmail.com> wrote:
> new MBP 2.53ghz
>
> (defn create-fn []
>   (fn [] (println "hi")))
>
> (time (dotimes [x 40000000]
>     (create-fn)))
>
>> "Elapsed time: 1034.409 msecs"
>
> Hopefully you don't need 40,000,000 functions in less than a second ;)

Well that takes about 12 seconds for me on a dual CPU P3 1GHz
(/proc/cpuinfo says 930MHz?).  :)

-- 
Michael Wood <esiot...@gmail.com>

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

Reply via email to