Win32 Performance

Brendan Murphy bmurf at comcast.net
Thu Mar 20 20:42:35 CST 2003


I am using REALbasic 4.5.3 and V4RB 1.9.8b1 and I am seeing
performance problems on the Win32 side.

In my program I have a method that will generate database
entries and I have optimized it so it only concentrating on
database activities. When I run this method, I see
performance problems with the PC version of my program.

My original test showed the following times for adding
10,000 records to the database.

     Mac OS X: 18.22 seconds

     PC Win XP: 1171.58 seconds
      (yes that is over a thousand seconds!)

After examining the underlying code I found the problem. I
was calling flush in the intermediate code which meant it
was calling flush approximately 10,000 times.

After removing the unnecessary flush calls, I got the
following results.

     Mac OS X: 1.6 seconds

     PC Win XP: 12.63 seconds

Now these numbers are reasonable.

For comparison sake, here are the speeds of my test
computers.

     Mac: 1 Ghz DP

     PC: 1.2 Ghz

Yet, the PC version is still 8x slower than my OS X version.
Now I really like my Mac, but I think I would be a fool to
conclude that my Mac is 8x faster than my PC! So, there must
be another explanation.

Are there any known performance problems in the Win32 side
of things? Something isn't right here with almost an order
of magnitude of order of difference in execution times.



More information about the Valentina mailing list