Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP vs Other languages (Python/Ruby)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01511347
Message ID:
01511437
Vues:
75
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform