Click here to Skip to main content
       

C#

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionSocket performancememberdevvvy6 Nov '12 - 16:54 
Say my performance is approx 50ms per request (request initiated from one port on local machine to another port SAME machine), each request contains about ten rows of data (2 columns only).
 
What's your thought on this performance level?
(I know some algo trading execution say from London to NY can be done in say 50-60ms ...)
dev

QuestionRe: Socket performance PinmvpRichard MacCutchan6 Nov '12 - 21:44 
Is this a C# issue?
One of these days I'm going to think of a really clever signature.

AnswerRe: Socket performance Pinmemberdevvvy6 Nov '12 - 22:12 
it's not an issue, just testing water see how people feels about 50ms per call if it's considered slow/acceptable/fast
dev

GeneralRe: Socket performance PinmvpRichard MacCutchan6 Nov '12 - 22:28 
Then it's more a question for the Lounge or http://www.codeproject.com/Forums/186301/Hardware-Devices.aspx[^].
One of these days I'm going to think of a really clever signature.

GeneralRe: Socket performance Pinmemberdevvvy7 Nov '12 - 15:27 
i did thought of that but it's a programming question - question for an opinion on a general IPC performance - in particular, for those .NET developers who has tried to push performance on IPC/socket
dev

GeneralRe: Socket performance PinmvpRichard MacCutchan7 Nov '12 - 21:29 
devvvy wrote:
question for an opinion on a general IPC performance
Which has nothing to do with C#.
One of these days I'm going to think of a really clever signature.

GeneralRe: Socket performance Pinmemberdevvvy7 Nov '12 - 22:18 
dude, there isn't a forum by the name "Socket" or ".NET IPC", so this i figure is the closest.
dev

GeneralRe: Socket performance PinprotectorPete O'Hanlon7 Nov '12 - 22:26 
You could have chosen this[^] forum, or this[^] one. Richard is right - as your question doesn't have any code element, i.e. you haven't actually asked why your code is slow, then it's not for this forum. Your question is more general and, dare I say it, architectural.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: Socket performance Pinmemberdevvvy7 Nov '12 - 22:29 
i see, you are correct Peter, in absence of C# code, this is an architectural issue
dev

GeneralRe: Socket performance PinmvpRichard MacCutchan8 Nov '12 - 0:05 
And neither "Socket" nor "NET.IPC" are specific to C#.
One of these days I'm going to think of a really clever signature.

AnswerRe: Socket performance PinmvpDave Kreskowiak7 Nov '12 - 2:17 
The question isn't really valid. What is acceptable for your app depends on your requirements, not some general opinion.

GeneralRe: Socket performance Pinmemberdevvvy7 Nov '12 - 15:24 
no, if you wire one simple request with a small payload and it takes one second, we know "Something is Wrong", regardless of your application.
 
In fact I think fact our code now do one request in 50ms local-to-local tells me it's not tuned enough
dev

GeneralRe: Socket performance PinmvpDave Kreskowiak8 Nov '12 - 1:41 
As others have said, you're asking for other peoples opinion about what is acceptable performance for a single request. We REALLY can't answer that. Only your requirements can.
 
Then, you toss all of that discussion and replace other opinions with what YOUR opinion is and that the performance is unacceptable. You answered your own question!
 

Now, if you're asking about how to improvie your code performance, you can restate your question and supply the relevant code snippets to show what you've got.

GeneralRe: Socket performance Pinmemberdevvvy8 Nov '12 - 13:35 
sure screw you Dave
dev

GeneralRe: Socket performance PinmvpDave Kreskowiak8 Nov '12 - 14:46 
Reported as abusive.
 
Have a nice life.

GeneralRe: Socket performance Pinmemberdevvvy8 Nov '12 - 14:52 
Dave Kreskowiak wrote:
Have a nice life.

 
Go get one buddy
dev

AnswerRe: Socket performance Pinmemberjschell7 Nov '12 - 7:53 
devvvy wrote:

What's your thought on this performance level?

 
What is the performance measurement if you open 50 threads at the same time and run for 5 minutes and average the result?
GeneralRe: Socket performance Pinmemberdevvvy7 Nov '12 - 15:25 
Yes threaded but test done single threaded manner - this seems to tell me our code can be further tuned, guess to <10ms for local-to-local (simple request not a big payload)
dev

GeneralRe: Socket performance Pinmemberjschell8 Nov '12 - 8:06 
devvvy wrote:
Yes threaded but test done single threaded manner

 
Which is why I suggested that you do a threaded test.
GeneralRe: Socket performance Pinmemberdevvvy8 Nov '12 - 13:34 
btw, removed logging one place it's not 6ms per call! Hurrah!
dev

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 20 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid