Lua |
Back to the Win32 Shootout Back to dada's perl lab |
Lua | |
---|---|
Tested Version | |
Home Page | http://www.lua.org/ |
Download | http://www.lua.org/download.html |
Notes | binary version from here. |
View All Source Code For Lua |
(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: 20 | Avg Rank: 13 | Avg Rank: 13 | Log | |||
---|---|---|---|---|---|---|---|---|
CPU | Rank | Mem | Rank | LOC | Rank | |||
Ackermann's Function | ackermann.lua5 | 2.71 | 31 | 840 | 15 | 11 | 16 | log |
Array Access | ary3.lua5 | F | (F) * | F | (F) * | 12 | 8 | log |
Count Lines/Words/Chars | wc.lua5 | 2.93 | 23 | 620 | 10 | 9 | 8 | log |
Exception Mechanisms | except.lua5 | 2.25 | 17 | 620 | 8 | 32 | 12 | log |
Fibonacci Numbers | fibo.lua5 | 5.66 | 30 | 612 | 13 | 6 | 4 | log |
Hash (Associative Array) Access | hash.lua5 | 2.31 | 23 | 12512 | 32 | 10 | 6 | log |
Hashes, Part II | hash2.lua5 | 3.37 | 11 | 2856 | 14 | 13 | 8 | log |
Heapsort | heapsort.lua5 | 3.19 | 21 | 2712 | 15 | 49 | 14 | log |
Hello World | hello.lua5 | 1.49 | 10 | 596 | 13 | 1 | 4 | log |
List Operations | lists.lua5 | 3.76 | 19 | 2120 | 13 | 80 | 28 | log |
Matrix Multiplication | matrix.lua5 | 8.45 | 24 | 776 | 14 | 37 | 15 | log |
Method Calls | methcall.lua5 | 5.43 | 21 | 612 | 11 | 51 | 19 | log |
Nested Loops | nestedloop.lua5 | 3.78 | 30 | 604 | 13 | 16 | 15 | log |
Object Instantiation | objinst.lua5 | 13.85 | 22 | 656 | 7 | 56 | 18 | log |
Random Number Generator | random.lua5 | 2.22 | 28 | 616 | 12 | 14 | 9 | log |
Regular Expression Matching | regexmatch.lua5 | 4.76 | 7 | 632 | 1 | 16 | 2 | log |
Reverse a File | reversefile.lua5 | 1.62 | 13 | 5228 | 12 | 9 | 17 | log |
Sieve of Erathostenes | sieve.lua5 | 16.35 | 25 | 752 | 15 | 22 | 22 | log |
Spell Checker | spellcheck.lua5 | 1.52 | 7 | 5992 | 21 | 7 | 2 | log |
Statistical Moments | moments.lua5 | 1.45 | 16 | 2748 | 13 | 41 | 6 | log |
String Concatenation | strcat.lua5 | 0.76 | 28 | 1512 | 16 | 31 | 44 | log |
Sum a Column of Integers | sumcol.lua5 | 6.57 | 27 | 648 | 12 | 5 | 11 | log |
Word Frequency Count | wordfreq.lua5 | 3.11 | 11 | 1440 | 8 | 23 | 9 | log |
*Test Implemented but not measured (timeout or error). | ||||||||
Tests Not Implemented For This Language: Echo Client/Server, Producer/Consumer Threads |
Back to the Win32 Shootout Back to dada's perl lab |
Send comments or suggestions to dada@perl.it |