[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] LuaJIT-2.0.0-beta1
- From: Petite Abeille <petite.abeille@...>
- Date: Sun, 1 Nov 2009 09:51:55 +0100
On Oct 31, 2009, at 11:59 PM, Mike Pall wrote:
Relative speedup over Lua 5.1.4 on standard Lua benchmarks (e.g.
11.9 means it's almost twelve times faster):
Very nice, very nice :)
FWIW, here is what ApacheBench has to say when run against an HTTP
stack in pure Lua:
% uname -a
Darwin 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT
2009; root:xnu1228.15.4~1/RELEASE_I386 i386
% ab -n 1000 -k http://127.0.0.1:1080/a
% lua -v Nanoki.lua . 0 1080
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
Requests per second: 773.17 [#/sec] (mean)
Time per request: 1.293 [ms] (mean)
% luajit -v Nanoki.lua . 0 1080
LuaJIT 2.0.0-beta1 -- Copyright (C) 2005-2009 Mike Pall. http://luajit.org/
Requests per second: 1174.19 [#/sec] (mean)
Time per request: 0.852 [ms] (mean)
Quite a palpable speedup out-of-the-box :))
That said, the main speedup seems to come from a much more streamlined
VM, irrespectively of JIT:
% luajit -v -joff Nanoki.lua . 0 1080
LuaJIT 2.0.0-beta1 -- Copyright (C) 2005-2009 Mike Pall. http://luajit.org/
Requests per second: 1167.37 [#/sec] (mean)
Time per request: 0.857 [ms] (mean)
P.S.
When trying 'luajit -jv' I get an 'unknown luaJIT command'. Did I get
the command line options wrong?