Blog Post · Battle of the Programming Languages

Battle of the Programming Languages ^

Posted On Saturday 26 February 2011 by Tom Leese (TomMan)

I recently put together a series of tests to find out which is faster between: Python, Lua, and PHP.

The tests consisted of:



Here are the results:


python3  11.29s
lua      8.46s
php      15.01s



As you can see, Lua is the fastest language, python is the next and PHP is the slowest.

I did all these tests on an Intel Atom processor under Arch Linux. With all the tests I had: Chromimum, Kate and XChat running (and KDE).

Python Code · PHP Code · Lua Code