I did:
"Java arrays 18s" is Java arrays in Clojure.
"Plain Java 2s" is Java arrays in Java.

Here's the Java code: http://gist.github.com/460063

That's what you meant, right?

I agree that it looks very good :)

"Mutable deftype" is a special case in that apart from the dotimes
loop counter all numeric operations are done internally in a single
mutable deftype instance, but it is still very good - in this scenario
there was close to zero overhead from using Clojure.



On Jul 1, 4:29 pm, Nicolas Oury <nicolas.o...@gmail.com> wrote:
> On Thu, Jul 1, 2010 at 2:27 AM, j-g-faustus 
> <johannes.fries...@gmail.com>wrote:
>
> > Using the equiv branch, I get
> > * Java arrays: 18s
> > * Immutable deftype: 10s
> > * Mutable deftype: 2s
> > * Plain Java: 2s
>
> That's a very encouraging result! That proves that the equiv branch, and
> deftypes, can be as fast as java.
>
> Could you test an array in Plain Java to compare what comes from arrays and
> what comes from array access in Clojure?

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