lua optimization test