python source benchmark
Alex
the_brain at mit.edu
Tue Oct 3 00:16:14 EDT 2000
More information about the Python-list mailing list
Tue Oct 3 00:16:14 EDT 2000
- Previous message (by thread): example sources in both Python and C++
- Next message (by thread): python source benchmark
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I'm trying to benchmark python source with clock() function, but my > code below returns negative value. I am not sure if my code is wrong > or clock() is not suitable for getting CPU time... Any comment would > help me a lot. Thanks. I haven't used the clock function before, so I don't know whether or not it's more appropriate, but I have always used time.time for this sort of thing. You should check out the profiler, too. It's really easy to use. Alex. -- Speak softly but carry a big carrot.
- Previous message (by thread): example sources in both Python and C++
- Next message (by thread): python source benchmark
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list