fast-js
Example of how to start writing c++ modules for node
- make sure your have node 9.8.0 installed
$ npm install
- run the project with
$ npm start
What does it do?
The example here is comparing the speed a which we do the same operations in c++ as also in JavaScript.
The operations include the following:
- iterate for a large number count
- changing a value of an number/integer on the program stack
- printing a string of "hello\n" to standard output (stdout)