Skip to content

Speed comparison between NodeJS using JS module vs C++ module vs OpenCL module

Notifications You must be signed in to change notification settings

aksharp/nodejs-speed

Repository files navigation

What you need before you run the example

1) NodeJS (obviously) which you can download here:
http://www.nodejs.org

2) node-gyp plugin to compile C++ and OpenCL plugins. 
After installing nodejs, run this command:
npm install -g node-gyp

Step by Step

1) git clone https://github.com/aksharp/nodejs-speed.git
2) cd nodejs-speed/cpp-modules (go to dir that has c++ and opencl modules)
3) node-gyp configure build (compile c++ and opencl on your OS)
4) cd .. (go back to parent directory)
5) npm install (install express.js dependency)
6) node server-js.js 
7) node server-cpp.js (in separate terminal)
8) node server-web.js (in separate terminal)
9) node server-open-cl.js (in separate terminal)
10) open in browser: http://localhost:3000
11) click on "GO !!!" button (test uses random numbers, feel free to click it multiple times)

About

Speed comparison between NodeJS using JS module vs C++ module vs OpenCL module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published