Skip to content

Instantly share code, notes, and snippets.

@gsf
Created March 9, 2014 17:29
Show Gist options
  • Select an option

  • Save gsf/9451240 to your computer and use it in GitHub Desktop.

Select an option

Save gsf/9451240 to your computer and use it in GitHub Desktop.

With etagres and streaming:

$ nab http://localhost:1041/about
REQ NUM: 100 RTN NUM: 100 QPS: 33 BODY TRAF: 517KB per second
REQ NUM: 300 RTN NUM: 290 QPS: 48 BODY TRAF: 750KB per second
$ ps aux | grep node                                                                          
gsf       8938 25.2  2.6 757788 104256 pts/8   Sl+  12:52   0:07 node server.js
$ node-tick-processor
...
   ticks parent  name
  70814   93.9%  /usr/lib/libc-2.19.so

   2612    3.5%  /usr/bin/node
    244    9.3%    LazyCompile: *Buffer buffer.js:156
    151   61.9%      LazyCompile: *Buffer.concat buffer.js:476
    151  100.0%        LazyCompile: *ETagRes._write /home/gsf/git/wavefarm.org/etagres.js:28

Without etagres, still streaming:

$ nab http://localhost:1041/about
REQ NUM: 100 RTN NUM: 100 QPS: 33 BODY TRAF: 517KB per second
REQ NUM: 300 RTN NUM: 285 QPS: 47 BODY TRAF: 729KB per second
$ ps aux | grep node                                                                          
gsf       9564 27.8  1.4 715044 57388 pts/8    Sl+  12:54   0:07 node server.js
$ node-tick-processor
...
 [JavaScript]:
   ticks  total  nonlib   name
    211    0.5%   10.3%  LazyCompile: write /home/gsf/git/wavefarm.org/node_modules/trumpet/no
de_modules/sax/lib/sax.js:910
     79    0.2%    3.9%  LazyCompile: *EventEmitter.emit events.js:53
     52    0.1%    2.5%  LazyCompile: *Buffer buffer.js:156
     43    0.1%    2.1%  LazyCompile: *Writable.write _stream_writable.js:163
     40    0.1%    2.0%  LazyCompile: Buffers.splice /home/gsf/git/wavefarm.org/node_modules/t
rumpet/node_modules/buffers/index.js:45
     37    0.1%    1.8%  LazyCompile: ~OutgoingMessage._writeRaw http.js:511
     37    0.1%    1.8%  LazyCompile: *remove _linklist.js:47
     37    0.1%    1.8%  LazyCompile: *exports._unrefActive timers.js:425
     36    0.1%    1.8%  LazyCompile: ~matchSelector /home/gsf/git/wavefarm.org/node_modules/t
rumpet/lib/matcher.js:163
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment