Show: Throughput as 'event rate' through the logstash pipeline.
Use the generator input to generate 500,000 events and emit one dot per event so we can easily calculate event rate using the 'pv' (pipe viewer) tool.
% rvm 1.9.3 do bin/logstash agent -e 'input { generator { type => foo count => 500000 } } output { stdout { debug => true debug_format => dots } }' | pv -abt > /dev/null
488kB 0:02:01 [4.03kB/s]
- Time: 121 seconds
- Rate: 4000 events/sec
% rvm 1.7.0 do bin/logstash agent -e 'input { generator { type => foo count => 500000 } } output { stdout { debug => true debug_format => dots } }' | pv -abt > /dev/null
488kB 0:00:19 [ 25kB/s]
- Time: 19 seconds
- Rate: 25000 events/sec