Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created October 21, 2011 01:37
Show Gist options
  • Save methodmissing/1302898 to your computer and use it in GitHub Desktop.
Save methodmissing/1302898 to your computer and use it in GitHub Desktop.
Lourenss-MacBook-Air:rbczmq lourens$ ruby perf/local_thr.rb tcp://127.0.0.1:5020 10 1000000
message size: 10 [B]
message count: 1000000
mean throughput: 410276 [msg/s]
mean throughput: 32.822 [Mb/s]
Lourenss-MacBook-Air:rbczmq lourens$ ruby perf/local_thr.rb tcp://127.0.0.1:5020 100 1000000
message size: 100 [B]
message count: 1000000
mean throughput: 293891 [msg/s]
mean throughput: 235.113 [Mb/s]
Lourenss-MacBook-Air:rbczmq lourens$ ruby perf/local_thr.rb tcp://127.0.0.1:5020 256 1000000
message size: 256 [B]
message count: 1000000
mean throughput: 264576 [msg/s]
mean throughput: 541.853 [Mb/s]
Lourenss-MacBook-Air:rbczmq lourens$ ruby perf/local_thr.rb tcp://127.0.0.1:5020 512 1000000
message size: 512 [B]
message count: 1000000
mean throughput: 234353 [msg/s]
mean throughput: 959.913 [Mb/s]
Lourenss-MacBook-Air:rbczmq lourens$ ruby perf/local_thr.rb tcp://127.0.0.1:5020 1024 1000000
message size: 1024 [B]
message count: 1000000
mean throughput: 176342 [msg/s]
mean throughput: 1444.595 [Mb/s]
Lourenss-MacBook-Air:rbczmq lourens$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.1]
PID COMMAND %CPU TIME #TH #WQ #POR #MREG RPRVT RSHRD RSIZE VPRVT VSIZE PGRP PPID STATE UID FAULTS COW MSGSENT MSGRECV SYSBSD SYSMACH CSW
74635 ruby 185.8 00:13.06 4/2 0 27 58 4596K+ 2620K 7528K+ 49M 2412M 74635 182 running 501 2027+ 77 106 49 4988099+ 320+ 40593+
74634 taskgated 0.0 00:00.01 2 0 31 43 452K 336K 1780K 37M 2398M 74634 1 sleeping 0 594 112 117 48 244 97 34
74633 ruby 122.6 00:08.72 4/2 0 26 1066+ 1031M+ 2620K 1032M+ 1056M+ 3419M+ 74633 250 running 501 264455+ 77 106 49 3146326+ 5570+ 35062+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment