tcp roundtrip time performance

116 views
Skip to first unread message

Andrey

unread,
May 13, 2013, 10:08:12 PM5/13/13
to nod...@googlegroups.com
Hi everyone,
I'm trying to benchmark network protocol client, and profiler tells me that client spend most of the time inside uv write request. Simple ping-pong test[1] shows 15k roundtrips/sec limit (MacBookAir5,1/OSX). CPU load is reasonably low ( less than 50% on client and server, 4 cores ). Can anyone explain what is the limit here - libuv, TCP stack, v8, ping script, CPU or something else?


Cheers,
Andrey.

Jorge

unread,
May 14, 2013, 5:34:13 AM5/14/13
to nod...@googlegroups.com
Sounds like if you were running out of ephemeral ports...
--
( Jorge )();

Andrey

unread,
May 14, 2013, 7:40:08 AM5/14/13
to nod...@googlegroups.com
no, it's just one connection during whole benchmark

Sri Vidhya

unread,
May 14, 2013, 8:06:01 AM5/14/13
to nod...@googlegroups.com
HI am sending the header information (like below)to node.js on the server side, but it is not working.
How to pass the header information to server from client. and how to get on the server side .
Pls if anyone knows... let me know
 
this is the ajax request call fron client html page:

client.html:
 
          $.ajax({
                    //  url:'http://10.163.14.52:8888/all',
                    url:'http://IPaddress:port/getTaluk/',
                    type:'POST',
                    datatype:'json',
                    data:inputVal,
                    headers : {
                                'emp_value':s,
                                'signature':hash,
                                'timestamp':t
                                },
                    complete:function(){
                        alert(":"+data);
                     
                      
                    }
                 });

on the server side am getting like this using nodejs:

  console.log("emp_value:"+req.headers['emp_value']);
but i can't able to get it.


--
--
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 nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Thanks,
N. Srividhya.

Dominic Tarr

unread,
May 16, 2013, 6:48:09 PM5/16/13
to nod...@googlegroups.com
round trips are just slow.
like compare a normal game of ping-pong with a player on each side of the table,
with a game where all players just stood on the same side, and hit balls over the net as fast as they could.

the second one could be way faster, because your not waiting for anyone to return the ball.

extending this metaphore, node is like a great ping pong player,
10x better than the next player.
but not because node can hit the ball 10 times faster,
but rather they because they can play 10 regular games of ping pong at once.

Reply all
Reply to author
Forward
0 new messages