Skip to content

Instantly share code, notes, and snippets.

@wolfeidau
Created January 13, 2013 09:39
Show Gist options
  • Select an option

  • Save wolfeidau/4523264 to your computer and use it in GitHub Desktop.

Select an option

Save wolfeidau/4523264 to your computer and use it in GitHub Desktop.
node-worker-farm output printing child information stopChild
$ node examples/pi/index.js
{ [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
Worker Farm: DTrace support loaded
worker-farm
createDTraceProvider worker-farm
Doing it the slow (single-process) way...
π ≈ 3.1417501760000017 (0.00015752241020861035 away from actual!)
took 6783 milliseconds
Doing it the fast (multi-process) way...
π ≈ 3.1416729040000018 (0.00008025041020864876 away from actual!)
took 1544 milliseconds
{ send: [Function],
calls:
[ ,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
],
activeCalls: 0,
pid: 44161 }
{ send: [Function],
calls:
[ ,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
],
activeCalls: 0,
pid: 44162 }
{ send: [Function],
calls:
[ ,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
],
activeCalls: 0,
pid: 44164 }
{ send: [Function],
calls:
[ ,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
],
activeCalls: 0,
pid: 44165 }
{ send: [Function],
calls:
[ ,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
],
activeCalls: 0,
pid: 44166 }
{ send: [Function],
calls:
[ ,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
],
activeCalls: 0,
pid: 44167 }
{ send: [Function],
calls:
[ ,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
],
activeCalls: 0,
pid: 44168 }
{ send: [Function],
calls:
[ ,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
],
activeCalls: 0,
pid: 44163 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment