Skip to content

Instantly share code, notes, and snippets.

@lukechilds
Last active June 23, 2017 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukechilds/96b14bac95aa5119061c839c387a0d8c to your computer and use it in GitHub Desktop.
Save lukechilds/96b14bac95aa5119061c839c387a0d8c to your computer and use it in GitHub Desktop.
base64-js Node.js v8.1.2 vs v8.2.0-rc.1

Running base64-js benchmarks on Node.js v8.1.2 vs v8.2.0-rc.1

$ node --version
v8.1.2

$ node bench/basic.js
decode ms, decode ops/ms, encode ms, encode ops/ms
8 166667 37 36036.10810810811

$ nvm use rc
Now using node v8.2.0-rc.1 (npm v5.0.3)

$ node bench/basic.js
decode ms, decode ops/ms, encode ms, encode ops/ms
22 60606.181818181816 44 30303.090909090908

I'm consistently getting around 8ms to decode in v8.1.2 and 22ms in v8.2.0-rc.1 with bench/basic.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment