Skip to content

Instantly share code, notes, and snippets.

@katafrakt
Created May 28, 2015 15:26
Show Gist options
  • Save katafrakt/45f11d05d6b363b4523b to your computer and use it in GitHub Desktop.
Save katafrakt/45f11d05d6b363b4523b to your computer and use it in GitHub Desktop.
# From: http://nerdblog.pl/post/120106238519/node-on-execjs-is-sloooooow
# with bmbm
# 2 + 2
Rehearsal ------------------------------------------------
node.js 0.080000 0.010000 0.090000 ( 0.080896)
therubyracer 0.060000 0.010000 0.070000 ( 0.065395)
--------------------------------------- total: 0.160000sec
user system total real
node.js 0.030000 0.000000 0.030000 ( 0.026012)
therubyracer 0.050000 0.010000 0.060000 ( 0.048075)
# math.js
Rehearsal ------------------------------------------------
node.js 1.270000 0.090000 1.360000 ( 1.349001)
therubyracer 1.100000 0.070000 1.170000 ( 1.160851)
--------------------------------------- total: 2.530000sec
user system total real
node.js 1.070000 0.100000 1.170000 ( 1.155744)
therubyracer 1.100000 0.050000 1.150000 ( 1.141221)
# with bm (that's why you should not use it)
# 2 + 2
user system total real
node.js 0.060000 0.100000 9.480000 ( 9.861057)
therubyracer 0.040000 0.010000 0.050000 ( 0.042860)
# math.js
user system total real
node.js 1.660000 0.400000 30.840000 ( 31.301797)
therubyracer 1.310000 0.090000 1.400000 ( 1.387052)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment