I tried with type hinting the clojure code, it was slower.
Startup time for the jvm seemed fair, because node has to start up as well. This should count into the overall time imho.
you should calculate the time within clojure and node and output it. This will take away the startup time. You should also warm up the jvm.
I may play with the type hints tonight if I get time. It shouldn't make it slower.
Uh, if it's slower you should probably look into that.
Re:Comparing clojure and node.js for speed
by oskarkv on Thursday April 07, 2011 @06:58PM
(#2421575)
How did you add the type hints?
node has no jvm, node starts up in milliseconds. node _is_ faster
Re:Comparing clojure and node.js for speed
by runevault on Friday April 08, 2011 @12:00AM
(#2422381)
For most anything server based (which is how I would use Node if I were to pick it up) startup time should not matter because the server just remains running... making that comparison pointless at best and disingenuous at worst.
Re:Comparing clojure and node.js for speed
by UncleOxidant on Thursday April 07, 2011 @06:44PM
(#2421530)
...to start up anyway.
I don't know node, so I don't know if he's making similar mistakes on that side.