Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
ssvm-nodejs-starter
Discontinued A template project to run Rust functions in Node.js through the Second State WebAssembly engine.
And there are libraries written by napi and rust: https://github.com/napi-rs/node-rs. You can see all of it's provide the same functional and faster than the libraries written in C/C++.
About performance, I tested in swc long time ago, in swc scenario napi-rs is 2x faster than neon's legacy backend: https://github.com/swc-project/swc/issues/852. Compare with the neon's napi backend, the performance won't be very different. But the napi backend of neon is incomplete.
What benefits does this offer over using something like second-state-vm. I recently worked with napi in c++ and returning a native object without wrapping it with getters and setters is a pain I ended up creating a new NAPI Object and adding each field one by one.
Here is a library to compare the callover head between libraries: https://github.com/jdsaund/rust-node-perf