Program to test Variable Type Speeds

Pookie
03-21-2002, 11:43 PM
I was going to stick this little proggy in the code section but the forum said I wasn't allowed....

Anyways, this is a simple test program which tests all of the most commonly used variables for speed comparisons.

It loops though each variable type 1 million times then tests the time overall, it's highly accuarate as it uses the QueryPerformanceCounter Function.

I believe it may not work on some older computers if their computer doesn't suppose this feature. :-\

It's also a good pointer for people who use Variants to see how slow they actually are.

It's also good to see which variable types are the fastest for people who want the most out of their games.

With some modifying, you could rewrite the timing function to work as a module and can be loaded into any program for speed testing. :D

PS: This is not all my code as I grabbed the Function from the allapi.net and modified it a bit...

Edit: PPS: Also compile it and check out the difference in time between long/integer Vs Variants. :)

dcl3500
03-21-2002, 11:56 PM
Nice one Pookie, never thought of doing this myself.

Robby
03-22-2002, 12:30 AM
Nice one Lord, I mean Pookie.

Hey what happened to Lord?

Pookie
03-22-2002, 02:09 AM
My other half said Lord sounded silly so I had it removed. :)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum