Comparison of conditional jumps in Lua | |
«for … end» loop: | |
plaintext | |
HTML | |
«for … in» syntax construction: | |
plaintext | |
HTML | |
jump with «goto» keyword: | |
plaintext | |
HTML | |
loop with tail-recursion: | |
plaintext | |
HTML | |
«repeat … until» block: | |
plaintext | |
HTML | |
«while … end» implementation: | |
plaintext | |
HTML | |
Test data files: | |
Size of code | |
Size in bytecode | |
Execution time | |
Visualized test results: | |
Size of code | |
Size in bytecode | |
Execution time | |
Test script: | |
plaintext | |
HTML | |
Everything plotted with GNUPlot | |