Lua |
Back to the Win32 Shootout Back to dada's perl lab |
Lua | |
---|---|
Tested Version | Lua 4.0 |
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: 22 | Avg Rank: 16 | Avg Rank: 14 | Log | |||
---|---|---|---|---|---|---|---|---|
CPU | Rank | Mem | Rank | LOC | Rank | |||
Ackermann's Function | ackermann.lua | 3.81 | 32 | 1000 | 19 | 11 | 16 | log |
Array Access | ary3.lua | 11.85 | 26 | 1392 | 16 | 13 | 10 | log |
Count Lines/Words/Chars | wc.lua | 4.97 | 28 | 620 | 10 | 13 | 11 | log |
Exception Mechanisms | except.lua | 8.99 | 26 | 848 | 12 | 32 | 12 | log |
Fibonacci Numbers | fibo.lua | 5.72 | 31 | 592 | 11 | 6 | 4 | log |
Hash (Associative Array) Access | hash.lua | 2.09 | 22 | 11912 | 30 | 10 | 6 | log |
Hashes, Part II | hash2.lua | 2.71 | 8 | 3068 | 15 | 13 | 8 | log |
Heapsort | heapsort.lua | 4.27 | 23 | 8312 | 34 | 49 | 14 | log |
Hello World | hello.lua | 1.32 | 5 | 580 | 12 | 1 | 4 | log |
List Operations | lists.lua | 4.09 | 20 | 4168 | 24 | 79 | 27 | log |
Matrix Multiplication | matrix.lua | 12.35 | 25 | 1108 | 16 | 35 | 13 | log |
Method Calls | methcall.lua | 13.05 | 25 | 588 | 10 | 54 | 22 | log |
Nested Loops | nestedloop.lua | 4.68 | 31 | 592 | 11 | 16 | 15 | log |
Object Instantiation | objinst.lua | 22.66 | 25 | 844 | 10 | 60 | 20 | log |
Random Number Generator | random.lua | 2.25 | 29 | 596 | 11 | 14 | 9 | log |
Regular Expression Matching | regexmatch.lua | 5.31 | 8 | 880 | 2 | 17 | 3 | log |
Reverse a File | reversefile.lua | 2.33 | 22 | 21328 | 31 | 11 | 19 | log |
Sieve of Erathostenes | sieve.lua | 24.40 | 29 | 1080 | 18 | 23 | 25 | log |
Spell Checker | spellcheck.lua | 2.04 | 11 | 6268 | 22 | 13 | 14 | log |
Statistical Moments | moments.lua | 2.29 | 23 | 8308 | 25 | 43 | 8 | log |
String Concatenation | strcat.lua | 0.52 | 25 | 1432 | 15 | 32 | 45 | log |
Sum a Column of Integers | sumcol.lua | 6.88 | 28 | 632 | 11 | 7 | 16 | log |
Word Frequency Count | wordfreq.lua | 3.07 | 10 | 1788 | 12 | 24 | 10 | log |
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 |