I've run two benchmarks so far (CPU time)
- n-body [20,000,000] : 109.297s
- binary-trees [16] : 30.003s
To give you a comparison here are the results listed for n-body on the shootout
- Python: 2925.45
- Ruby: 5561.54
- PHP: 2665.16
- Perl: 1905.44
- Lua (nonjit): 538.00
Now, Java JDK is still way better coming in at 16.07 but still it seems LuaJIT is on the right track! Granted this is just two small tests and no one should take that as a defacto victory of luajit over perl/php/etc.
Linux becka 2.6.16-gentoo-r9 #2 PREEMPT Sun Jun 18 16:40:00 EDT 2006 i686 Intel(R) Pentium(R) 4 CPU 2.20GHz GNU/Linux
MemTotal: 514832 kB
MemFree: 14312 kB
No comments:
Post a Comment