Recent

Author Topic: Free Pascal vs C++: The First Results Are In  (Read 26487 times)

syntonica

  • Full Member
  • ***
  • Posts: 120
Re: Free Pascal vs C++: The First Results Are In
« Reply #60 on: January 08, 2020, 11:54:25 pm »
Test6: C++ Ofast = 11.5%  FPC -O2 = 19.0%  FPC NoOpt: 24%
Test8: C++ Ofast = 12.0%  FPC -O2 = 17.0%  FPC NoOpt: 25%
Compiled with FPC 3.3.1 and with a bit of tweaking, I got Test6: 16% and Test8: 17%.  (I may have swapped the two results previously.) The executable is about 15% larger than the 3.0.4 version.

I think I'm fully debugged now. Time to see if I can get some vectorization going...

Shpend

  • Full Member
  • ***
  • Posts: 167
Re: Free Pascal vs C++: The First Results Are In
« Reply #61 on: March 03, 2022, 01:14:21 pm »
@syntonica

Hey mate, could you get more performance out and made some more optimizations happen?

Thaddy

  • Hero Member
  • *****
  • Posts: 18695
  • To Europe: simply sell USA bonds: dollar collapses
Re: Free Pascal vs C++: The First Results Are In
« Reply #62 on: March 03, 2022, 02:23:21 pm »
@syntonica

Hey mate, could you get more performance out and made some more optimizations happen?
The difference is not between the languages, but by the implementation of the compilers.
This is an often made mistake, confusing languages with compilers.
IOW the languages themselves are basically just as fast.
« Last Edit: March 03, 2022, 02:25:35 pm by Thaddy »
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

Shpend

  • Full Member
  • ***
  • Posts: 167
Re: Free Pascal vs C++: The First Results Are In
« Reply #63 on: March 03, 2022, 02:38:08 pm »
Yea but he said this:

"I think I'm fully debugged now. Time to see if I can get some vectorization going..."

So wanted to know how its going :D

 

TinyPortal © 2005-2018