/fast-js

Example of how to start writing c++ modules for node

Primary LanguageJavaScriptMIT LicenseMIT

fast-js

Example of how to start writing c++ modules for node

  1. make sure your have node 9.8.0 installed
  2. $ npm install
  3. 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)