I have previously compared performance of the three most popular interpreted languages - Perl, Python and Lua (part1, part2). The next question was - how do they compare to the Javascript? Unlike the above mentioned languages it was quite unusual to use Javascript outside of a browser sandbox but with developing of the node.js this became possible.
Thoughts and ideas about programming, scripting, automation, electronics, gadgets, web and technology
Showing posts with label perl. Show all posts
Showing posts with label perl. Show all posts
Tuesday, September 3, 2013
Tuesday, July 23, 2013
Python vs Perl vs Lua - speed comparison. Part 2
As far as people show interest in this topic I decided to perform an additional measurement to the one I performed in Part 1.
This time I wanted to compare floating point numbers operations performance because my good friend Anonymous worried about it. He said that I shouldn't have abused lua interpreter with basic arithmetic operations on integers because it's not good at it. He said that I should have tried floating points numbers instead to let lua interpreter shine. I was a bit skeptic about it to be honest but Anonymous's logic was sound.
Tuesday, May 14, 2013
Python vs Perl vs Lua - speed comparison
I have written the base64 encoding algorithm in Perl, Python and Lua to compare the performance in basic arithmetic and file-io operations. Perl implementation was written a long time ago and it supposed to be a one liner. That's why the script looks so obfuscated:
Subscribe to:
Posts (Atom)