There is a significant time required to run "Hello, world" on a JVM, significantly more so than the corresponding C program on the same machine, due to all kinds of initialization to start up the JVM, even if the compile time is negligible.
There is additional initialization time when you start up a JVM running Clojure, even if it is just a "Hello, world" Clojure program with negligible compile time. If you are curious to see some run times for Hello, world in Java and Clojure for several different JVMs on the same hardware, but different OSs, I've published some measurements here: http://homepage.mac.com/jafingerhut/Sites/files/clojure-benchmarks/2011-03-15-clojure-1.3-alpha6-vs-1.2-vs-java-perf.html Click on the "table of hello world results" link. The earlier links are for slight modifications of many Clojure programs submitted to the Computer Language Benchmarks Game web page, comparing their run time with Clojure 1.2 and Clojure 1.3alpha6. Andy On Apr 20, 2011, at 10:59 AM, Michael Golovanov wrote: > Ok. Problem solved. > Online service that i am using show sum of compile and execution time. > Simple empty function definition without any calls show 0,8 sec time > consuption. Therefore Clojure code is fast as Java. > > I am appreciate for your help and coding tips. Thank yoy > > -- > 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