Monte Carlo Method and pi
beliavsky at 127.0.0.1
Tue Jul 13 15:13:31 CEST 2004
Dan Christensen <jdc at uwo.ca> wrote:
> naive loop C: 0.040 *
>Only one of the tests used psyco. I did run the others with psyco
>too, but the times were about the same or slower.
>For me, psyco was about four times slower than C, and numarray was
>almost 3 times slower. I'm surprised by how close psyco and numarray
>were in your runs, and how slow Fortran was in beliavsky's test.
>My C program measures user+sys cpu time for the loop itself, but
>not start-up time for the program.
When I insert timing code within the Fortran program, the measured time is
0.04 s, so the C and Fortran speeds are the same, although different random
number generators are used.
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
More information about the Python-list