One more test: this one gets rid of the parallelism of async, no time difference. (I assume because JSON is using all the time, which won't be parallel)
# ab -n 1000 -c 100 "http://localhost:3000/user/loginJ?name=a&password=a" # Requests per second: 190.89 [#/sec] (mean) exports.loginJ = (req, out) -> data = {} userService.getWithNamePassword(req.query.name, req.query.password, (err, res) -> data.user = res; exports.getShop((err, res) -> data.shop = res out.send([data.user, data.shop]) ) ) On Tuesday, April 10, 2012 5:18:16 PM UTC-4, timp wrote: > > all the time seems-to-be/is in JSON. > > are there any magic flags to make JSON faster? > > On Tuesday, April 10, 2012 5:14:06 PM UTC-4, Mark Hahn wrote: >> >> You say you added profiling. Did you find out where the time was being >> burned? >> >> -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
