Why not?

user> (time (dotimes [_ 1000000000] (Math/ceil 0.1)))
"Elapsed time: 626.867 msecs"

David

On Tue, May 3, 2011 at 3:38 AM, bOR_ <boris.sch...@gmail.com> wrote:

> user> (time (dotimes [i 100000] (contribmath-ceil (rand))))
>
>
> "Elapsed time: 4500.530303 msecs"
>
>
> nil
>
>
> user> (time (dotimes [i 100000] (contribgenericmath-ceil (rand))))
>
>
> "Elapsed time: 44.707193 msecs"
>
>
> nil
>
>
> user> (time (dotimes [i 100000] (incanterprocessing-ceil (rand))))
>
>
> "Elapsed time: 38.322599 msecs"
>
>
> nil
>
>
> user> (time (dotimes [i 100000] (inc (int (rand)))))
>
>
> "Elapsed time: 28.939557 msecs"
>
> Observing the huge differences in speed of certain math functions in
> different clojure libraries, I was wondering if anyone knows which clojure
> math library is fastest in general? Is there any wisdom in this, or is it
> just up to users to check for each function where to get an efficient
> implementation.
>
>  --
> 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

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

Reply via email to