www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/22/08:45:34

From: Jason Dagit <thedagit AT mail DOT coos DOT or DOT us>
Newsgroups: comp.os.msdos.djgpp
Subject: 386 (anti)benchmarks!
Date: Sun, 22 Mar 1998 05:38:35 -0800
Organization: Dagit Enterprises
Lines: 38
Message-ID: <3515145B.50C5422C@mail.coos.or.us>
Reply-To: thedagit AT mail DOT coos DOT or DOT us
NNTP-Posting-Host: coosbay1-66.transport.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello,

I have this old 386 DX @16mhz with 1 meg of RAM and 40 megs of hard disk
space free (after using disk compression!).  I put DJGPP v2.01 (gcc
v2.8.0) on it just to see how slow/fast it would run.  Here are the
results:

Plain C
#include <stdio.h>

int main()
{
	printf("this is a Test.\n");
	return 0;
}
command line:
gcc test.c -o test.exe
This took about 30 secs to a minute to compile, and produced ~80k file.

C++
#include <iostream.h>

int main()
{
	cout << "this is a Test." << endl;
	return 0;
}
command line:
gpp test.cc -o test.exe
This took about 2 hrs give or take a half hour! and produced ~300k file.

Now, that is a difference.  On my Pentium 120mhz 80megs of RAM with 2
gigs of HD the compile times are less then 10 seconds.

I really didn't expect the C++ to compile so slowly.  How did anyone
ever write software on those older computers? :)

Jason

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019