Hacker News new | past | comments | ask | show | jobs | submit login

wow, so much faster than lua



You can't compare measurements taken on different computers, for all you know the OP has a potato and I have a speed demon toaster.


Don't knock potatoes. I do all of my hardcore data analysis on my Very Large Potato Array.


They probably don't have the same hardware.

On the same hardware I get:

lua 5.1.5: ~480 ms

python 2.7.5: ~330 ms

luajit 2.0.2: ~190 ms

pypy 2.0.2: ~140ms


Same programs, same computer:

  ~$ time python t.py
  .
  
  real	0m0.350s
  user	0m0.304s
  sys	0m0.024s
  ~$ time lua t.lua
  .

  real	0m0.255s
  user	0m0.248s
  sys	0m0.004s
  ~$ time luajit t.lua
  .

  real	0m0.157s
  user	0m0.144s
  sys	0m0.012s


Which versions of lua and python? Because when I ran the programs python was faster than lua.


Python 2.7.3, Lua 5.1.5, LuaJIT 2.0.2 on Linux 3.2.0, Ubuntu 12.04.3 LTS on a 2.53GHz i3 (64bit)


I unfortunately had to edit the program after I took the measurements because HN cut off my program horizontally. So I removed one or two letters from the list.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: