Recent

Author Topic: Free Pascal application in Windows 7 vs 10  (Read 6490 times)

johngalt47

  • New member
  • *
  • Posts: 5
Free Pascal application in Windows 7 vs 10
« on: October 13, 2015, 09:47:43 pm »
Using FPC, I compiled the exact same code on two different computers:

1) Laptop (about 4 years old) using an i7 process running at 2.3 ghz under Windows 7

2) Desktop ( about 1 year old) using an i7-4790K running at 4.2 ghz under Windows 10 Insider Preview edition.

Both have SSD drives.

The laptop beat the desktop by more than double!

Any ideas why?

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2282
    • havefunsoft.com
Re: Free Pascal application in Windows 7 vs 10
« Reply #1 on: October 13, 2015, 10:13:09 pm »
what does the application?

Note, my 7 years old XP box also beats Windows 10 in boot time.

So what you're actually doing in the application, matters the most.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7504
Re: Free Pascal application in Windows 7 vs 10
« Reply #2 on: October 13, 2015, 10:15:10 pm »
The laptop has power scheme "always  on" while the desktop "save"or so ?

BobS

  • Full Member
  • ***
  • Posts: 153
Re: Free Pascal application in Windows 7 vs 10
« Reply #3 on: October 14, 2015, 07:44:32 am »
I think Marcov might be right.  I don't have 10 just 8.1 but this should hopefully get you there anyway.

Go to the control panel\Hardware and Sound\Power Options
click on 'show additional plans' if necessary to see the check box for 'High performance' and check it.
Now go compile is it faster?

rvk

  • Hero Member
  • *****
  • Posts: 3842
Re: Free Pascal application in Windows 7 vs 10
« Reply #4 on: October 14, 2015, 10:16:56 am »
The laptop has power scheme "always  on" while the desktop "save"or so ?
I would have thought a laptop would have default "power save" on. And a desktop default always "Highest performance". I've never seen it the other way around. But either way, it's good to check the option. (It could have been changed)

My guess is more towards the available memory and/or virusscanner.
(what memory do both machines have and have you tried disabling the virusscanner temporarily)

Thaddy

  • Hero Member
  • *****
  • Posts: 9184
Re: Free Pascal application in Windows 7 vs 10
« Reply #5 on: October 14, 2015, 10:49:12 am »
The insider preview also has extensive logging and debug code. That might also impact performance.
also related to equus asinus.

Handoko

  • Hero Member
  • *****
  • Posts: 3188
  • My goal: build my own game engine using Lazarus
Re: Free Pascal application in Windows 7 vs 10
« Reply #6 on: October 14, 2015, 11:03:20 am »
Many things can affect the performance. Virus, antivirus and other software, harddisk fragmentation, etc. But if the difference is more than double, that sounds weird.

You should try to download cpu performance benchmark tool to see what would it say.

shobits1

  • Sr. Member
  • ****
  • Posts: 278
  • .
Re: Free Pascal application in Windows 7 vs 10
« Reply #7 on: October 14, 2015, 08:18:37 pm »
Quote
The laptop beat the desktop by more than double!

whats double (app start up, speed to internet, video encoding ............) ???  :-\

unless you define what doubled no one will have any idea. also if you can provide the code things will be much clearer.

P.S: some times double is not good, like latency for example  :D

Brizeux

  • New Member
  • *
  • Posts: 11
Re: Free Pascal application in Windows 7 vs 10
« Reply #8 on: November 12, 2015, 11:48:08 am »
Excuses me I am a Newby. If I can find help ?
I try to launch Fpc applications from Windows 7 to Windows 10.
1) fp-ide (brand new 2.6.4 under Win10 / this morning) doesn't create object files.
2) all my *.exe issued from Win7 under Win10 hang.
3) all my *.exe run under Win7
Have you a way to help me under windows 10 ?
Friendly. Yves.

Handoko

  • Hero Member
  • *****
  • Posts: 3188
  • My goal: build my own game engine using Lazarus
Re: Free Pascal application in Windows 7 vs 10
« Reply #9 on: November 12, 2015, 04:34:00 pm »
Hello Brizeux, welcome to this forum.

We really want to help you, but the information you provided really isn't enough.

You didn't mention what kind of that application was. Was it a database application? Graphics or games? Can we see your code? What about the compiler settings? Did it use any OS dependent functions? When did it hang? On loading or on certain process?

Brizeux

  • New Member
  • *
  • Posts: 11
Re: Free Pascal application in Windows 7 vs 10
« Reply #10 on: November 13, 2015, 07:54:14 am »
Hello Handoko.
My programs are pure Pascal mathematical graphical  interactive programs. For instance "fulleren.pas" run perfectly under Win7, Ubuntu 14.04 LTS and I use Raspberry Pi 2B for first programs with Fpc+ptcgraph under Raspbian. All my programs, running under Windows 7 hang under Windows 10 ! Why ? Why pure Fp-IDE (2.6.4), running on 5 computers, without changing anything to set-up parameters, works fine under Win 7 and hang under Win 10 without any change (object files and executable files can't be opened. THe only change has been the passage from Windows 7 to Windows 10. Even the old *.exe files from Win 7 don't execute on Win 10 (for 5 computers, and when I downgrade -successfully on 4 computers- to Win 7, all the *.exe files then works very well. I think I have a bad insight of Windows 10 system (like permissions to execute files under Linux ?). During W.E.  ::) I shall try to use pure number crunching pascal program to dissociate events coming from graphics part from pure OS subtilities. In my opinion, I have forgotten something to set up properly windows 10 for fpc ? Friendly in PASCAL. Yves. ::)

mdalacu

  • Full Member
  • ***
  • Posts: 199
    • dmSimpleApps
Re: Free Pascal application in Windows 7 vs 10
« Reply #11 on: November 13, 2015, 08:40:21 am »
My app, dmMediaConverter, is running just fine under Windows 10 ... and i hate windows  ;)
http://dmsimpleapps.blogspot.ro/2014/04/dmmediaconverter.html
I am the latest stable Lazarus 1.4.4

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7504
Re: Free Pascal application in Windows 7 vs 10
« Reply #12 on: November 13, 2015, 08:50:25 am »
Depending on how you brought the EXEs to win10, sometimes the antimalware solution can be annoying.

Brizeux

  • New Member
  • *
  • Posts: 11
Re: Free Pascal application in Windows 7 vs 10
« Reply #13 on: November 13, 2015, 08:57:07 am »
Dear Handoko.
I have gone a little further :
On computer Octopus (Dell Precision 690 Bi Xeon Quad under Windows 10 pro)
I have punched the Pascal program Ada of one of my Raspberry : ada.pas
Compilation: O.K. Execution: Nothing. The processus is active but does nothing !
The same ada.exe from Win 10 is then transferred under the computer Hexaedre
 (ASUS Core I7 G75V under Win 7 pro)
Everything run fine under Hexaedre !
When I use units (graph ...) every thing hangs no object file, no exe file under fp-IDE
Friendly. Yves.

****************************************************************************************
program   Ada;
begin   { Ada }
 writeln( 'C1 : program Test for the node Raspberry Pi 2 B : Babbage.');
 writeln( ':= Programme  d''Ada sur Charles Babbage en PASCAL' ) ;
 writeln( '*** Bonjour Charles BABBAGE, ici Ada, LoveLace ! ' ) ;
 readln
end.   (* Ada *)
****************************************************************************************

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7504
Re: Free Pascal application in Windows 7 vs 10
« Reply #14 on: November 13, 2015, 10:00:52 am »
That definitely smells like antivirus trouble. Only other thing I can imagine is that you try to install it in "program files" instead of the proposed directory.