On Monday, 3 March 2014 02:18:39 UTC+5:30, tbc++ wrote:
>
> How are you running these tests? The "correct" way to benchmark such
> things is via a real benchmark framework (such as criterium) then compile
> your clojure app to a jar (perhaps via lein uberjar) and finally run it via
> a bare java invocation: java -jar my.jar.
>
> Lein for example sometimes uses sub-par JVM settings, trading runtime
> performance for startup speed.
>
Relevant bits from my project.clj are below:
:dependencies [[org.clojure/clojure "1.5.1"]
[criterium "0.4.3"]]
:global-vars {*warn-on-reflection* true
*assert* false
*unchecked-math* true}
:jvm-opts ^:replace ["-server" "-Xmx1g"]
I believe this overrides Lein's default tiered compilation setting. I
bench'ed both Java and Clojure code using Criterium.
Shantanu
>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.