LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 09-22-2003, 09:30 AM   #1
qwijibow
Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
i test linux + win2k, results are laughable !


Hi,
ive written a VERY simple Artificial inteligence game
(matchsticks)

iits a text based game, and only uses cout amd cin, so it will compile under both windows and linux.

i decided to use it as a performance test of redhat 9 vs WIndows2k

(i have a dual boot system)

under linux, the computer takes 52 seconds to make its first move.
under windows it takes a WHOPPING 2 minutes !!!!

is windows reeealy that much CRAPPER than linux ?
i dont believe even Ms windoze can suck THAT hard.

i posted the full details at a diff forum, here's the llink.
http://216.26.163.133/forums/topic.aspx?id=16681

if any of you have a dual boot windows / linux system.
i would be greatfull of you could download the source code and run the same pperformance test so we can compare.

here's the source.
http://uk.geocities.com/qwijibow_uk/main.cpp.txt
http://uk.geocities.com/qwijibow_uk/State.h.txt
http://uk.geocities.com/qwijibow_uk/TLList.h.txt
(remove the .txt extensions and compile main.cpp)
under windows, you will have to remove the exit(0) call in TLList.h (i forgot to remove it after testing)

any comments welcome, did i do somthing wrong ?
or is windows reeealy that lame ?
 
Old 09-22-2003, 09:45 AM   #2
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 417

Rep: Reputation: 31
Well, what compilers did you use on the linux and windows systems? To get a true speed comparison you need to use the same compiler, ie) GCC or Visual C++
 
Old 09-22-2003, 10:32 AM   #3
qwijibow
Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
i used G++ for linux, and Vc++ 6 for windows.

i didnt know GCC could compile W32 applications ???
and i know Microsofs VC++ does not compileLinux native binarys.

what compiler's are there that will compile both ???
 
Old 09-22-2003, 10:58 AM   #4
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
i believe dev-c++ uses a variation on gcc. did you turn on optimisations on vc++? the intel compilers are available for both win&lin
 
Old 09-22-2003, 11:14 AM   #5
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 417

Rep: Reputation: 31
Well, gcc doesnt compile windows programs under linux, but DJGPP for windows is a variant of GCC.
 
Old 09-22-2003, 11:35 AM   #6
qwijibow
Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
either way, optimisation should not linux to run twice as fast as windows.

so what, maybe windows c++ compiler is lame ?
 
Old 09-22-2003, 11:39 AM   #7
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
by qwijibow
optimisation should not linux to run twice as fast as windows.

gcc optimises by default(i think), vc++ does not, this could easily make a 2x difference if not more.
 
Old 09-22-2003, 03:06 PM   #8
gundelgauk
Member
 
Registered: Jul 2003
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
Greetings!


Nice results you have there.

You can optimize you programs as people have stated above by using different compilers, turnung cpu optimizations on etc. But my experience is that Linux will take more performance out of your hardware in many situations. My prime example is the Quake test: I can play smoothly (that is above 40 ftp in any situation) with 1024x768 under Linux while the game can get jerky (down to 15fps) at 800x600 under win2k.

I was positively surprised at what my hardware is able to do when I first tried to play under Linux. *lol*


Bye!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is dual core worth it on regular apps? Simple SMP test results SteveSch Linux - Hardware 7 09-12-2005 12:36 AM
Windows Longhorn Beta Test Results x-32b General 155 03-08-2005 02:37 PM
laughable boot problem. serious help needed! mindfestival Linux - Newbie 3 05-25-2004 10:18 PM
Glibc Pass II Test Results g_goblin Linux From Scratch 0 11-17-2003 12:42 PM
Leak Test results Zvezda Linux - Security 12 03-13-2002 05:46 PM


All times are GMT -5. The time now is 07:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration