|
|
Ruby |
Back to the Win32 Shootout Back to dada's perl lab |
| Ruby | |
|---|---|
| Tested Version | ruby 1.6.7 (2002-03-01) [i586-mswin32] |
| Home Page | http://www.ruby-lang.org/ |
| Download | http://www.dm4lab.to/~usa/ruby/index_en.html#download |
| View All Source Code For Ruby | |
|
(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: 32 | Avg Rank: 26 | Avg Rank: 9 | Log | |||
|---|---|---|---|---|---|---|---|---|
| CPU | Rank | Mem | Rank | LOC | Rank | |||
| Ackermann's Function | ackermann.ruby | F | (F) * | F | (F) * | 11 | 16 | log |
| Array Access | ary3.ruby | 41.34 | 37 | 1920 | 21 | 15 | 16 | log |
| Count Lines/Words/Chars | wc.ruby | 94.93 | 36 | 7132 | 35 | 9 | 8 | log |
| Echo Client/Server | echo.ruby | F | (F) * | F | (F) * | 29 | 2 | log |
| Exception Mechanisms | except.ruby | 27.00 | 29 | 2248 | 20 | 47 | 24 | log |
| Fibonacci Numbers | fibo.ruby | 30.63 | 44 | 1960 | 33 | 9 | 17 | log |
| Hash (Associative Array) Access | hash.ruby | 3.17 | 30 | 10064 | 25 | 12 | 12 | log |
| Hashes, Part II | hash2.ruby | 14.10 | 29 | 5428 | 31 | 13 | 8 | log |
| Heapsort | heapsort.ruby | 22.90 | 39 | 5736 | 26 | 43 | 4 | log |
| Hello World | hello.ruby | 15.56 | 40 | 1820 | 33 | 1 | 4 | log |
| List Operations | lists.ruby | 5.99 | 24 | 3452 | 21 | 26 | 5 | log |
| Matrix Multiplication | matrix.ruby | 76.90 | 36 | 2936 | 30 | 37 | 15 | log |
| Method Calls | methcall.ruby | 12.73 | 24 | 1860 | 21 | 45 | 10 | log |
| Nested Loops | nestedloop.ruby | 36.57 | 45 | 1860 | 33 | 16 | 15 | log |
| Object Instantiation | objinst.ruby | 44.52 | 27 | 2940 | 24 | 48 | 10 | log |
| Producer/Consumer Threads | prodcons.ruby | 120.27 | 12 | 2060 | 7 | 34 | 7 | log |
| Random Number Generator | random.ruby | 12.76 | 45 | 1880 | 31 | 11 | 4 | log |
| Regular Expression Matching | regexmatch.ruby | F | (F) * | F | (F) * | 27 | 6 | log |
| Reverse a File | reversefile.ruby | 21.07 | 34 | 19584 | 28 | 1 | 1 | log |
| Sieve of Erathostenes | sieve.ruby | 56.93 | 40 | 2300 | 32 | 15 | 6 | log |
| Spell Checker | spellcheck.ruby | 40.66 | 28 | 5828 | 20 | 12 | 11 | log |
| Statistical Moments | moments.ruby | 6.34 | 28 | 11616 | 29 | 46 | 10 | log |
| String Concatenation | strcat.ruby | 0.24 | 21 | 2092 | 22 | 6 | 4 | log |
| Sum a Column of Integers | sumcol.ruby | 44.33 | 38 | 2044 | 28 | 5 | 11 | log |
| Word Frequency Count | wordfreq.ruby | 34.44 | 26 | 3592 | 24 | 11 | 3 | 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 |