Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion String Tests was: Delphi vs C++ Performance Comparison
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John Jacobson  
View profile  
 More options Feb 10 2000, 3:00 am
Newsgroups: borland.public.delphi.non-technical, borland.public.cppbuilder.non-technical
From: "John Jacobson" <john...@xnet.com>
Date: 2000/02/10
Subject: String Tests was: Delphi vs C++ Performance Comparison
How about this for the strings tests?

An ASCII copy of the book of Genesis, King James Version, is used as the
reference text. (This is public doman text.)
Test 1: Find and replace the word "the" with "that".
Test 2: Find and replace the letter "e" with "a".
Test 3: Count the number of times the word "god" (case insensitive) appears
in the text.
Test 4: sort the lines in the text alphabetically (forward and as a second
test, backward)
Test 5: remove sentences with the word "god" (case insensitive) in them.
Test 6: make the entire text uppercase.
Test 7: all tests in one loop

Say, 1000 iterations? Don't count the time used to load the text into
memory.

I'll start the C++ and Delphi code tonight.

--
Have a Delphi day.

John M. Jacobson
john...@xnet.com

Visit Jake's Delphi Page at http://www.xnet.com/~johnjac

Robert Lee <rh...@nwu.edu> wrote in message

news:38A17EFD.CF06E83D@nwu.edu...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.