Click here to Skip to main content
15,398,348 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralFun performance test on Win7/Win8 with C++, C#(3.5,4,4.5) and Math.Sqrt() as special guest Pin
Super Lloyd10-Mar-12 4:30
MemberSuper Lloyd10-Mar-12 4:30 
GeneralRe: Fun performance test on Win7/Win8 with C++, C#(3.5,4,4.5) and Math.Sqrt() as special guest Pin
harold aptroot10-Mar-12 4:34
Memberharold aptroot10-Mar-12 4:34 
GeneralRe: Fun performance test on Win7/Win8 with C++, C#(3.5,4,4.5) and Math.Sqrt() as special guest Pin
Super Lloyd10-Mar-12 4:54
MemberSuper Lloyd10-Mar-12 4:54 
GeneralRe: Fun performance test on Win7/Win8 with C++, C#(3.5,4,4.5) and Math.Sqrt() as special guest Pin
harold aptroot10-Mar-12 5:02
Memberharold aptroot10-Mar-12 5:02 
GeneralRe: Fun performance test on Win7/Win8 with C++, C#(3.5,4,4.5) and Math.Sqrt() as special guest Pin
Super Lloyd10-Mar-12 5:09
MemberSuper Lloyd10-Mar-12 5:09 
GeneralRe: Fun performance test on Win7/Win8 with C++, C#(3.5,4,4.5) and Math.Sqrt() as special guest Pin
Super Lloyd10-Mar-12 5:00
MemberSuper Lloyd10-Mar-12 5:00 
GeneralRe: Fun performance test on Win7/Win8 with C++, C#(3.5,4,4.5) and Math.Sqrt() as special guest Pin
#realJSOP10-Mar-12 5:52
mva#realJSOP10-Mar-12 5:52 
GeneralRe: Fun performance test on Win7/Win8 with C++, C#(3.5,4,4.5) and Math.Sqrt() as special guest Pin
Super Lloyd10-Mar-12 13:16
MemberSuper Lloyd10-Mar-12 13:16 
This result is nothing new! Wink | ;)
The C# argument was NOT "hey, it's faster than C++" but "hey, it might be a little slower than C++ but it's much easier to program"

Interestingly, in this program, I can see C++ optimizer is much more betterrer (automatically remove multiple call to sqrt with same parameter) and this simple optimization has huge impact.

Interestingly too I can see C# perf is just as good if I spot the optimization myself! :P

But fear not, I just did that[^], and now I'm going to do that[^]! :P
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.

GeneralRe: Fun performance test on Win7/Win8 with C++, C#(3.5,4,4.5) and Math.Sqrt() as special guest Pin
NormDroid10-Mar-12 6:35
professionalNormDroid10-Mar-12 6:35 
GeneralRe: Fun performance test on Win7/Win8 with C++, C#(3.5,4,4.5) and Math.Sqrt() as special guest Pin
harold aptroot10-Mar-12 6:42
Memberharold aptroot10-Mar-12 6:42 
GeneralBackwards flying space shuttle... Pin
Sander Rossel10-Mar-12 0:27
professionalSander Rossel10-Mar-12 0:27 
GeneralRe: Backwards flying space shuttle... Pin
Nelek10-Mar-12 1:13
protectorNelek10-Mar-12 1:13 
GeneralIt's official: the end of the world is tomorrow. Pin
Septimus Hedgehog9-Mar-12 22:39
MemberSeptimus Hedgehog9-Mar-12 22:39 
GeneralRe: It's official: the end of the world is tomorrow. Pin
Richard MacCutchan9-Mar-12 22:40
mveRichard MacCutchan9-Mar-12 22:40 
GeneralRe: It's official: the end of the world is tomorrow. Pin
User 592419-Mar-12 23:00
MemberUser 592419-Mar-12 23:00 
GeneralRe: It's official: the end of the world is tomorrow. Pin
Dalek Dave9-Mar-12 23:11
professionalDalek Dave9-Mar-12 23:11 
GeneralRe: It's official: the end of the world is tomorrow. PinPopular
chriselst9-Mar-12 23:26
Memberchriselst9-Mar-12 23:26 
GeneralRe: It's official: the end of the world is tomorrow. Pin
Super Lloyd9-Mar-12 23:53
MemberSuper Lloyd9-Mar-12 23:53 
GeneralRe: It's official: the end of the world is tomorrow. Pin
User 5924110-Mar-12 0:14
MemberUser 5924110-Mar-12 0:14 
GeneralRe: It's official: the end of the world is tomorrow. Pin
OriginalGriff10-Mar-12 0:27
mveOriginalGriff10-Mar-12 0:27 
GeneralRe: It's official: the end of the world is tomorrow. Pin
OriginalGriff10-Mar-12 0:28
mveOriginalGriff10-Mar-12 0:28 
GeneralWoohoo! Pin
kid sister10-Mar-12 0:13
Memberkid sister10-Mar-12 0:13 
GeneralRe: Woohoo! Pin
OriginalGriff10-Mar-12 0:30
mveOriginalGriff10-Mar-12 0:30 
GeneralRe: Woohoo! Pin
Sander Rossel10-Mar-12 2:02
professionalSander Rossel10-Mar-12 2:02 
GeneralRe: Woohoo! Pin
Nelek10-Mar-12 1:08
protectorNelek10-Mar-12 1:08 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Do you expect users to read the instructions when using your apps?
  Results   357 votes