www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/01/22:03:49

From: Radical DOT NetSurfer AT delorie DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Benchmarks Revisited...
Date: Mon, 01 Oct 2001 21:48:43 -0400
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <5l6irt41k9kns8h3j3398rm282b56b6m69@4ax.com>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
X-Complaints-To: newsabuse AT supernews DOT com
Lines: 45
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I finally got in the results of my Borland 32-bit console
application as ported to now both DJGPP 2.03/GCC 2.95.3,
and MSVC++ 6.0....

if anyone wants the actual break down:

Program #1:
  C++Builder 3.0 Pro Console32: 1h 33m 07s
                                             DJGPP: 38m 33s  <---
                                    MSVC++ 6.0: 1h2m24s

Program #2:
  C++Builder 3.0 Pro Console32: 8m 15s
                                             DJGPP: 6m 37s
                                   MSVC++ 6.0:  5m 20s       <----- 

Program #1 scans entire lines of text ("sentences") using
strstr(), then inspects the left and right -hand sides for
white-space, and/or punctuation delimiters... then applies
word-substitutions... deconstructing and then reconstructing
the "sentence" each time a term matches...

Program #2 breaks sentences down into individual white-space and
punctuation -delimited words, and applies an alphabetized
lookup/substitution to each individual word...

Conclusion:
   It pays to break down a "sentence" into individual "words", and
apply an alphabetized lookup (and substitution) , instead of any
efficient "deconstruction/reconstruction" of the entire sentence
on a word-by-word matching basis....

What a trip trying to port something to MSVC++ 6.0 !!
_findfirst / _findnext / _findclose.... sheesh!
I guess I am ready to compile this for NT now... hehe.

email: radsmail AT juno DOT com
http://members.tripod.com/~RadSurfer/

Join us on Yahoo at:
http://groups.yahoo.com/group/BorlandCPPBuilder
for informal discussions about all versions of C++Builder...
[Computer programming for Windows 95, and Console32]
(you must be a Yahoo member to join)

- Raw text -


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