Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP code syntax coloring in HTML
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00355687
Message ID:
00361298
Views:
38
My results on a Dell 200mHz 64MB Ram, VFP 6 SP 3. Difference too small to matter?
Straight Code: 23.785
As Variable  : 23.416
As Define    : 23.608

>#DEFINE AS_DEFINE CHR(13)+CHR(13)
>cAsVar = CHR(13)+CHR(13)
>
>lnstart = SECONDS()
>? 'Test with straight code'
>FOR N = 1 TO 100000
>	x = CHR(13)+CHR(13)
>ENDFOR
>lnstop = SECONDS()
>? lnstop - lnstart
>
>lnstart = SECONDS()
>? 'Test as a var'
>FOR N = 1 TO 100000
>	x = cAsVar
>ENDFOR
>lnstop = SECONDS()
>? lnstop - lnstart
>
>lnstart = SECONDS()
>? 'Test as define'
>FOR N = 1 TO 100000
>	x = AS_DEFINE
>ENDFOR
>lnstop = SECONDS()
>? lnstop - lnstart
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform