Guest User

Untitled

a guest
Oct 26th, 2012
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. Node returns:
  2.  
  3. GET / HTTP/1.1
  4. User-Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.10.289 Version/12.02
  5. Host: 192.168.1.7:3000
  6. Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
  7. Accept-Language: en-US,en;q=0.9
  8. Accept-Encoding: gzip, deflate
  9. Cache-Control: no-cache
  10. Connection: Keep-Alive
  11.  
  12. Response
  13. HTTP/1.1 200 OK
  14. X-Powered-By: Express
  15. Content-Type: text/html; charset=utf-8
  16. Content-Length: 11
  17. Date: Fri, 26 Oct 2012 19:41:43 GMT
  18. Connection: keep-alive
  19.  
  20. Hello World
  21.  
  22. ---
  23.  
  24. Clojure returns:
  25.  
  26. GET / HTTP/1.1
  27. User-Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.10.289 Version/12.02
  28. Host: 192.168.1.7:3001
  29. Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
  30. Accept-Language: en-US,en;q=0.9
  31. Accept-Encoding: gzip, deflate
  32. Cache-Control: no-cache
  33. Connection: Keep-Alive
  34.  
  35. Response
  36. HTTP/1.1 200 OK
  37. Date: Fri, 26 Oct 2012 19:43:20 GMT
  38. Content-Type: text/plain;charset=ISO-8859-1
  39. Content-Length: 11
  40. Server: Jetty(7.6.1.v20120215)
  41.  
  42. Hello World
  43.  
  44.  
  45. ---
  46.  
  47. The amount of bytes returned by both tests were identical.
  48.  
  49. Tests are using: Express 3.0.0 for Node and Ring 1.1.6 for Clojure. This is a rigged test too in favor of Clojure because Express is like having Ring+Compojure installed.
  50.  
  51. -n 5000 / -c 5
  52. Express: 1800 reqs/sec @ 2.7ms per response average [0.551ms per request]
  53. Clojure: 1580 reqs/sec @ 3.2ms per response average [0.647ms per request]
  54.  
  55. -n 5000 / -c 50
  56. Node: 1790 reqs/sec @ 27ms per response average [0.552ms per request]
  57. Clojure: 1300 reqs/sec @ 38ms per response average [0.777ms per request]
  58.  
  59. -n 5000 / -c 150
  60. Node: 1650 reqs/sec @ 91ms per response average [0.607ms per request]
  61. Clojure: 1100 reqs/sec @ 135ms per response average [0.896ms per request]
Advertisement
Add Comment
Please, Sign In to add comment