3 ms·
but is this an apple-to-apple comparison to the node.js results referenced in the post?
by programnature 14y ago
but is this an apple-to-apple comparison to the node.js results referenced in the post?
- codeka 14y agoIt seems to me it's not because the Node.js test used a remote machine to drive the connections whereas this one is driving the connections from the same machine. Running the server and test harness on the same machine bypasses a whole lot of networking stack. Also, it seems the limitation in Node.js is the maximum heap size of around 1.4GB [1]. This test used a heap size of 3GB which is just not possible in Node (until the limitation is removed, anyway). [1]: http://blog.caustik.com/2012/04/10/node-js-w250k-concurrent-connections/ http://blog.caustik.com/2012/04/10/node-js-w250k-concurrent-...
- shenedu 14y agoauthor here. Yes, Clojure can use more than 1.4G of heap, and can use threads. http-kit is multithreaded (one just for IO, others for computing response). A strength of Clojure?
- notimetorelax 14y agoFrankly as somebody pointed out http-kit is written mostly in Java, so I would say that you're showing strength of JVM.
- shenedu 14y agoYes, JVM is strong. Clojure inherit it.