|
|
Awka |
Back to the Win32 Shootout Back to dada's perl lab |
Awka is not an interpreter like Gawk, Mawk or Nawk, but instead it converts the program to ANSI-C, then compiles this using gcc or a native C compiler to create a binary executable. This means you must have an ANSI C compiler present on your system for Awka to work.
An interesting feature is the possibility to extend Awka with external C functions (haven't tried this, though).
The tested version was built under cygwin (so it uses cygwin's gcc), with no changes from the source distribution.
| Awka | |
|---|---|
| Tested Version | awka 0.7.5, 12 July 2001 |
| Home Page | http://awka.sourceforge.net |
| Download | http://awka.sourceforge.net/download.html |
| View All Source Code For Awka | |
|
(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: 27 | Avg Rank: 8 | Log | |||
|---|---|---|---|---|---|---|---|---|
| CPU | Rank | Mem | Rank | LOC | Rank | |||
| Ackermann's Function | ackermann.awka | 10.34 | 37 | 17396 | 40 | 10 | 10 | log |
| Array Access | ary3.awka | 16.64 | 30 | 2700 | 30 | 10 | 4 | log |
| Count Lines/Words/Chars | wc.awka | 0.82 | 13 | 18008 | 36 | 6 | 4 | log |
| Fibonacci Numbers | fibo.awka | 5.62 | 29 | 1832 | 32 | 9 | 17 | log |
| Hash (Associative Array) Access | hash.awka | 0.86 | 9 | 10408 | 26 | 9 | 3 | log |
| Hashes, Part II | hash2.awka | 4.95 | 13 | 3696 | 17 | 9 | 2 | log |
| Heapsort | heapsort.awka | 4.40 | 25 | 7960 | 33 | 43 | 4 | log |
| Hello World | hello.awka | 5.97 | 23 | 1556 | 29 | 1 | 4 | log |
| Matrix Multiplication | matrix.awka | 54.57 | 34 | 1884 | 24 | 33 | 7 | log |
| Nested Loops | nestedloop.awka | 2.52 | 28 | 1584 | 29 | 11 | 4 | log |
| Random Number Generator | random.awka | 1.38 | 24 | 1616 | 26 | 14 | 9 | log |
| Regular Expression Matching | regexmatch.awka | 42.64 | 13 | 1688 | 8 | 32 | 11 | log |
| Reverse a File | reversefile.awka | 1.77 | 17 | 23720 | 33 | 5 | 7 | log |
| Sieve of Erathostenes | sieve.awka | 39.99 | 34 | 2240 | 31 | 17 | 10 | log |
| Spell Checker | spellcheck.awka | 2.16 | 12 | 5584 | 19 | 11 | 8 | log |
| Statistical Moments | moments.awka | 4.86 | 27 | 9576 | 28 | 66 | 28 | log |
| String Concatenation | strcat.awka | 36.86 | 33 | 3448 | 33 | 7 | 10 | log |
| Sum a Column of Integers | sumcol.awka | 2.29 | 16 | 1612 | 23 | 3 | 3 | log |
| Word Frequency Count | wordfreq.awka | 7.74 | 19 | 2108 | 15 | 18 | 4 | log |
| 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 |