Hi all,
I'd just like to report some benchmarks of clojure (jdk1.8-ea) and
clojure-py(python 2.7.3) on the raspberry pi. JVM startup time is an
issue and since I don't know python I consider clojure-py a good
alternative for demonstrating clojure on the pi.
so here we go:
>lein trampoline repl
needs roughly 2 minutes (!!!) when invoked inside a project with :aot &
:main enabled in the project.clj
>lein repl
needs just under 1 minute to start when not inside a project
>clojurepy
needs roughly 18 seconds to start a bare repl (1/3 of leiningen)
BUT,
as soon as we've got a vm up and running
>(reduce * (range 1N 51)) ;; (! 50)
needs 17ms with python but roughly 4ms with java
For the sake of completeness, the pure Java version of factorial (using
exactly the same types) needs roughly 2.5ms
by python is so non-existent that even though I can write factorial I
can't write a proper timing function!!! (fail...)
not bad at all in my opinion... :)
generally, even with leiningen I find that once the vm is up and as long
as I don't use concurrency, the experience is very smooth...
now if only there was an editor to support clojure syntax-highlighting...
Jim
--
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.