|
|
Awk |
Back to the Win32 Shootout Back to dada's perl lab |
| Awk | |
|---|---|
| Tested Version | GNU Awk 3.1.3 |
| Home Page | http://www.gnu.org/software/gawk/gawk.html |
| Download | ftp://ftp.gnu.org/gnu/gawk/ |
| View All Source Code For Awk | |
|
(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: 28 | Avg Rank: 27 | Avg Rank: 8 | Log | |||
|---|---|---|---|---|---|---|---|---|
| CPU | Rank | Mem | Rank | LOC | Rank | |||
| Ackermann's Function | ackermann.gawk | T | (T) * | T | (T) * | 10 | 10 | log |
| Array Access | ary3.gawk | 60.62 | 39 | 3212 | 33 | 10 | 4 | log |
| Count Lines/Words/Chars | wc.gawk | 0.55 | 7 | 2052 | 23 | 6 | 4 | log |
| Fibonacci Numbers | fibo.gawk | 26.81 | 43 | 2052 | 35 | 9 | 17 | log |
| Hash (Associative Array) Access | hash.gawk | 1.38 | 17 | 8456 | 19 | 9 | 3 | log |
| Hashes, Part II | hash2.gawk | 6.72 | 20 | 3732 | 18 | 9 | 2 | log |
| Heapsort | heapsort.gawk | 26.95 | 40 | 8484 | 35 | 43 | 4 | log |
| Hello World | hello.gawk | 7.38 | 30 | 2016 | 36 | 1 | 4 | log |
| Matrix Multiplication | matrix.gawk | 90.64 | 37 | 2280 | 25 | 33 | 7 | log |
| Nested Loops | nestedloop.gawk | 27.59 | 43 | 2044 | 35 | 11 | 4 | log |
| Random Number Generator | random.gawk | 5.49 | 39 | 2072 | 33 | 14 | 9 | log |
| Regular Expression Matching | regexmatch.gawk | 24.66 | 11 | 2200 | 9 | 32 | 11 | log |
| Reverse a File | reversefile.gawk | 5.18 | 27 | 23060 | 32 | 5 | 7 | log |
| Sieve of Erathostenes | sieve.gawk | 225.09 | 46 | 2472 | 35 | 17 | 10 | log |
| Spell Checker | spellcheck.gawk | 1.63 | 8 | 3960 | 12 | 11 | 8 | log |
| Statistical Moments | moments.gawk | 25.30 | 32 | 9468 | 27 | 66 | 28 | log |
| String Concatenation | strcat.gawk | 38.82 | 35 | 2680 | 27 | 7 | 10 | log |
| Sum a Column of Integers | sumcol.gawk | 2.44 | 17 | 2032 | 27 | 3 | 3 | log |
| Word Frequency Count | wordfreq.gawk | 6.31 | 17 | 2488 | 17 | 18 | 4 | log |
| *Test Implemented but not measured (timeout or error). | ||||||||
| Tests Not Implemented For This Language: Method Calls, Echo Client/Server, Exception Mechanisms, List Operations, Object Instantiation, Producer/Consumer Threads | ||||||||
|
Back to the Win32 Shootout Back to dada's perl lab |
Send comments or suggestions to dada@perl.it |