> What JVM 6 sub-version are you using?
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
> Does it make any difference if you specify -XX:+DoEscapeAnalysis at
My clojure start script currently has:
java -server -classpath $CLASSPATH \
-XX:+EliminateLocks -XX:+UseBiasedLocking \
-XX:+UseCompressedOops -XX:+DoEscapeAnalysis \
jline.ConsoleRunner clojure.main $@
> the command line? Various JVM 6 sub-versions enable and disable it by
> default and it can make a pretty hefty difference if it isn't enabled.
And the following times are pretty representative (after warming up
the VM, the first couple of runs are slower):
user=> (time (dotimes [_ 1000] (sort v)))
"Elapsed time: 4145.987 msecs"
user=> (time (dotimes [_ 1000] (sorted-vec v)))
"Elapsed time: 3295.779 msecs"
user=> (time (dotimes [_ 1000] (sorted-vec-2 v)))
"Elapsed time: 2537.989 msecs"
I don't have easy access to any machines with Windows on to compare
though - sorry!
--
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