NJS - API Calls

naidile.pn naidilepn at gmail.com
Tue Jun 4 09:11:36 UTC 2019


Hi Dmitry,

Could you please help me in understanding the difference between js_content
and js_preread with usecases.

Regards,
Naidile

On Mon, Jun 3, 2019 at 11:49 PM naidile.pn <naidilepn at gmail.com> wrote:

> Thanks a lot!
>
> On Mon, Jun 3, 2019 at 11:45 PM Dmitry Volyntsev <xeioex at nginx.com> wrote:
>
>>
>>
>> On 03.06.2019 21:07, naidile.pn wrote:
>> > Which one has more performance - Lua or NJS ?
>>
>>
>> In benchmarks I did, I saw no big differences (njs was slightly better
>> (< 5%)). Because, in real case scenarios not the interpreter is the
>> bottleneck (If you do not do too much math heavy lifting).
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20190604/4e662d53/attachment.html>


More information about the nginx-devel mailing list