>Hi All,
>
>Not really a Fox question specifically but thought someone here might have an idea on this.
>
>I am wondering just how code execution speed of VFP compares to other languages such as Python and Ruby? Take for example the following 10million times loop:
>
>nStart = SECONDS()
>a = 0
>b = RAND()
>FOR x = 1 TO 10000000
> a = a + b
>NEXT
>nStop = SECONDS()
>? nStop-nStart, X, a
>
>
>This runs on my machine in VFP in 2.4secs. Any idea how fast it would run in either of the alternative languages?
>
>Thanks,
google for computer language shootout - source of different routines in many languages exeists and is easy to port to vfp.
Did that around 2002 for some of them - vfp was about where you expected it - p-compiled language, no JIT, no static typing -
slower than java, faster than javascript (back then!!! nowadays JS JIT will smoke vfp most of those tasks...),
duking it out with python, more often loosing, but in the same league.
regards
thomas