Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Node.js modules speed test: C++ vs JavaScript
JavaScript C++ Python
Latest commit f982e5e @lupomontero Merge pull request #4 from lupomontero/node-gyp
refactor for node-gyp
Failed to load latest commit information.
.gitignore Initial commit
.travis.yml refactor for node-gyp refactor for node-gyp
binding.gyp refactor for node-gyp
cppspeed.cpp refactor for node-gyp
package.json refactor for node-gyp
test.js refactor for node-gyp

Node.js modules speed test: C++ vs JavaScript

Build Status

Download and build

# Install node-gyp globally if not installed yet
npm install -g node-gyp

# Clone, build and test
git clone git://
cd node-cppspeed
node-gyp configure build


npm test

You should see output like below:

foo 1 run in 100ms
foo 2 run in 59ms
cppfoo run in 5ms
c++ was 20.0 times faster (fooTime1)
c++ was 11.8 times faster (fooTime2)
Something went wrong with that request. Please try again.