Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Node returns:
- GET / HTTP/1.1
- User-Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.10.289 Version/12.02
- Host: 192.168.1.7:3000
- 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
- Accept-Language: en-US,en;q=0.9
- Accept-Encoding: gzip, deflate
- Cache-Control: no-cache
- Connection: Keep-Alive
- Response
- HTTP/1.1 200 OK
- X-Powered-By: Express
- Content-Type: text/html; charset=utf-8
- Content-Length: 11
- Date: Fri, 26 Oct 2012 19:41:43 GMT
- Connection: keep-alive
- Hello World
- ---
- Clojure returns:
- GET / HTTP/1.1
- User-Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.10.289 Version/12.02
- Host: 192.168.1.7:3001
- 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
- Accept-Language: en-US,en;q=0.9
- Accept-Encoding: gzip, deflate
- Cache-Control: no-cache
- Connection: Keep-Alive
- Response
- HTTP/1.1 200 OK
- Date: Fri, 26 Oct 2012 19:43:20 GMT
- Content-Type: text/plain;charset=ISO-8859-1
- Content-Length: 11
- Server: Jetty(7.6.1.v20120215)
- Hello World
- ---
- The amount of bytes returned by both tests were identical.
- 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.
- -n 5000 / -c 5
- Express: 1800 reqs/sec @ 2.7ms per response average [0.551ms per request]
- Clojure: 1580 reqs/sec @ 3.2ms per response average [0.647ms per request]
- -n 5000 / -c 50
- Node: 1790 reqs/sec @ 27ms per response average [0.552ms per request]
- Clojure: 1300 reqs/sec @ 38ms per response average [0.777ms per request]
- -n 5000 / -c 150
- Node: 1650 reqs/sec @ 91ms per response average [0.607ms per request]
- Clojure: 1100 reqs/sec @ 135ms per response average [0.896ms per request]
Advertisement
Add Comment
Please, Sign In to add comment