EOSERV Forum > Lounge > Comparison: Pascal / C++
Topic is locked.
Page: << 1 >>
Comparison: Pascal / C++
Author Message
Post #114287 Comparison: Pascal / C++

Hai guys, just sharing something kinda interesting that I found, I was just comparing the processing speed of Pascal vs C++. I know pascal pretty much like the back of my hand but as you can see from the right hand CMD in the screenshot, it got to 1000 just about, as C++ had just reached 50k nearly. Which means C++ has nearly 50x the processing speed as pascal does. Which is quite a considerable difference, so it just makes me want to learn C++ properly in greater detail because it seems faster and there's a lot more you can do with it :B thoughts :)?

---
If money doesn't grow on trees, then why do banks have branches?
13 years, 27 weeks ago
Post #114316 Re: Comparison: Pascal / C++

Thoughts: I love the names you choose for your projects. 

---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};
13 years, 27 weeks ago
Post #114347 Re: Comparison: Pascal / C++

"trololololol" and "lolwhut" xD i noticed too before I read you're post

13 years, 26 weeks ago
Post #114356 Re: Comparison: Pascal / C++

They both compile into machine code. Unless you effectively ran each at the exact sametime (each on it's own processor) then I don't see how the difference could be so distinct.

edit-

Nice experiment though.

---
https://www.youtube.com/watch?v=d_DFVzxsEUc
13 years, 26 weeks ago
Post #114405 Re: Comparison: Pascal / C++

If your C++ code is 50x faster than your Pascal code then the most probable explanations is that either your Pascal code is50x worse or your complier is. Keep in mind that if both are compiled then you aren't comparing Pascal to C++ as they are both machine code at execution. As I said before, either your Pascal code is 50x times worse or your compiler is 50x worse (or maybe a factor of the two ;])

Well, 50x is an exaggeration but you get the idea.
---
http://sordie.co.uk
http://twitter.com/@SordieEO
13 years, 26 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > Lounge > Comparison: Pascal / C++