This is a simple comparison between a plain JavaScript implementation and a NAPI-RS implementation of the Münchausen numbers algorithm.
cd test
yarn install
yarn build
nvm use 20
echo "--- Plain JS ---"
node plainJs.js
echo "--- NAPI-RS ---"
node rustModule.js