The math on that works out almost perfectly.  You can't do math on
"responses per second" and get anything intuitive, but you can on
"seconds per response".
redisClient standalone = 27k RPS = 0.04ms/response
helloworld = 7.5 RPS = 0.13ms/response
Expected sum = 0.17ms/response = 5.8k RPS, which is pretty close to
what you're seeing.

On Apr 30, 9:00 am, jason.桂林 <guil...@gmail.com> wrote:
> here is my test
>
> var redisClient = redis.createClient();
>
> > http.createServer(function(req, res) {
> >     redisClient.set('foo', 'bar', function(err, data) {
> >         res.end('hello world')
> >     })
> > }).listen(3000)
>
> RPS: 5k
>
> but when I test redisClient standalone, it is 27k RPS. test helloworld
> without redis is 7.5k RPS.
>
> Why a 27K code slow down a 7.5k code ? How can I optimize it?
>
> --
> Best regards,
>
> Jason Green
> 桂林

-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to