Python |
Back to the Win32 Shootout Back to dada's perl lab |
Python | |
---|---|
Tested Version | Python 2.3.2 |
Home Page | http://www.python.org/ |
Download | http://www.activestate.com/Products/Download/Get.plex?id=ActivePython |
View All Source Code For Python |
(Ranks in Red in the
table below are those which fall below the average Rank for this language
over all tests. The corresponding programs could possibly benefit from further optimization.) |
||||||||
Test | Source Code | Avg Rank: 23 | Avg Rank: 25 | Avg Rank: 12 | Log | |||
---|---|---|---|---|---|---|---|---|
CPU | Rank | Mem | Rank | LOC | Rank | |||
Ackermann's Function | ackermann.python | 14.74 | 40 | 3544 | 33 | 12 | 22 | log |
Array Access | ary3.python | 11.17 | 25 | 2596 | 29 | 12 | 8 | log |
Count Lines/Words/Chars | wc.python | 1.84 | 17 | 2404 | 25 | 13 | 11 | log |
Echo Client/Server | echo.python | F | (F) * | F | (F) * | 49 | 7 | log |
Exception Mechanisms | except.python | 8.93 | 25 | 2372 | 21 | 41 | 21 | log |
Fibonacci Numbers | fibo.python | 13.87 | 38 | 2376 | 39 | 9 | 17 | log |
Hash (Associative Array) Access | hash.python | 1.20 | 13 | 7440 | 16 | 13 | 13 | log |
Hashes, Part II | hash2.python | 6.52 | 17 | 3748 | 19 | 13 | 8 | log |
Heapsort | heapsort.python | 6.22 | 27 | 4924 | 23 | 46 | 8 | log |
Hello World | hello.python | 39.39 | 47 | 2364 | 40 | 1 | 4 | log |
List Operations | lists.python | 1.94 | 16 | 2664 | 16 | 27 | 6 | log |
Matrix Multiplication | matrix.python | 17.67 | 27 | 2436 | 26 | 34 | 10 | log |
Method Calls | methcall.python | 14.70 | 27 | 2372 | 25 | 41 | 9 | log |
Nested Loops | nestedloop.python | 12.63 | 35 | 2364 | 39 | 16 | 15 | log |
Object Instantiation | objinst.python | 17.97 | 24 | 2372 | 21 | 42 | 8 | log |
Producer/Consumer Threads | prodcons.python | 24.76 | 11 | 2620 | 8 | 40 | 13 | log |
Random Number Generator | random.python | 4.63 | 37 | 2372 | 36 | 18 | 23 | log |
Regular Expression Matching | regexmatch.python | 5.69 | 9 | 2648 | 12 | 27 | 6 | log |
Reverse a File | reversefile.python | 0.90 | 8 | 11268 | 18 | 6 | 13 | log |
Sieve of Erathostenes | sieve.python | 28.42 | 31 | 2444 | 34 | 15 | 6 | log |
Spell Checker | spellcheck.python | 1.80 | 9 | 5308 | 16 | 12 | 11 | log |
Statistical Moments | moments.python | 1.80 | 19 | 6700 | 20 | 41 | 6 | log |
String Concatenation | strcat.python | 0.31 | 22 | 2640 | 26 | 8 | 14 | log |
Sum a Column of Integers | sumcol.python | 4.70 | 25 | 2388 | 31 | 7 | 16 | log |
Word Frequency Count | wordfreq.python | 3.14 | 12 | 2976 | 21 | 24 | 10 | log |
*Test Implemented but not measured (timeout or error). |
Back to the Win32 Shootout Back to dada's perl lab |
Send comments or suggestions to dada@perl.it |