[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT startup performance
- From: Petite Abeille <petite_abeille@...>
- Date: Mon, 16 Nov 2009 18:00:39 +0100
On Nov 16, 2009, at 1:38 PM, Mike Pall wrote:
> It wouldn't hurt. But you wouldn't see much of a difference,
> either. If the Lua code for request handling is only run once,
> it's probably not compiled at all. So you're not getting any
> benefit from a JIT compiler.
While at this conjuncture the JIT itself doesn't make much of a difference for a typical Web app, the VM does:
% lua -v Nanoki.lua . 0 1080
Requests per second: 773.17 [#/sec] (mean)
% luajit -v Nanoki.lua . 0 1080
Requests per second: 1174.19 [#/sec] (mean)
% luajit -v -joff Nanoki.lua . 0 1080
Requests per second: 1167.37 [#/sec] (mean)
http://article.gmane.org/gmane.comp.lang.lua.general/58851
Also, if the "CGI" type launcher supports persistent connections by reusing a process for the lifetime of a connection, then one might benefit from the JIT itself at some point.