News for hackers. Stuff that matters.
Re:Comparing clojure and node.js for speed by jshen on Thursday April 07, 2011 @06:08PM (#2421409)
This is a poorly implemented benchmark. He's including the startup time of the jvm, he's not warming up the jvm, and he's not type hinting the clojure code.

I don't know node, so I don't know if he's making similar mistakes on that side.

Re:Comparing clojure and node.js for speed by Swizec on Thursday April 07, 2011 @06:14PM (#2421437)
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.

Re:Comparing clojure and node.js for speed by jshen on Thursday April 07, 2011 @06:18PM (#2421446)
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.

Re:Comparing clojure and node.js for speed by gfodor on Thursday April 07, 2011 @06:16PM (#2421441)
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?
Re:Comparing clojure and node.js for speed by realgt on Thursday April 07, 2011 @06:15PM (#2421440)
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.
Re:Comparing clojure and node.js for speed by jshen on Thursday April 07, 2011 @07:26PM (#2421669)
which is unimportant to a large class of apps.