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. :)
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. :)