[nginx-announce] njs-0.9.0

Dmitry Volyntsev xeioex at nginx.com
Tue May 6 19:36:18 UTC 2025


Hello,

I'm glad to announce a new release of NGINX JavaScript module (njs).

This release features a 30% performance improvement for the njs engine
and support for GCC 15.

Learn more about njs:

- Overview and introduction:
       https://nginx.org/en/docs/njs/
- NGINX JavaScript in Your Web Server Configuration:
       https://youtu.be/Jc_L6UffFOs
- Extending NGINX with Custom Code:
       https://youtu.be/0CVhq4AUU7M
- Using node modules with njs:
       https://nginx.org/en/docs/njs/node_modules.html
- Writing njs code using TypeScript definition files:
       https://nginx.org/en/docs/njs/typescript.html

Feel free to try it and give us feedback on:

- Github:
       https://github.com/nginx/njs/issues

Additional examples and howtos can be found here:

- Github:
       https://github.com/nginx/njs-examples

Changes with njs 0.9.0                                       06 May 2025

      Core:

      *) Feature: refactored working with built-in strings, symbols
         and small integers.
         Performance improvements (arewefastyet/benchmarks/v8-v7 benchmark):
         Richards: +57% (631 → 989)
         Crypto: +7% (1445 → 1551)
         RayTrace: +37% (562 → 772)
         NavierStokes: +20% (2062 → 2465)
         Overall score: +29% (1014 → 1307)

     *) Bugfix: fixed handling of undefined values of a captured group
        in RegExp.prototype[Symbol.split]().

     *) Bugfix: fixed GCC 15 build with 
-Wunterminated-string-initialization.



More information about the nginx-announce mailing list