mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
fixed broken speed test
This commit is contained in:
parent
b098ff5682
commit
a31421b658
1 changed files with 3 additions and 1 deletions
|
@ -14,7 +14,9 @@ describe "speed tests" do
|
|||
output { null { } }
|
||||
CONFIG
|
||||
|
||||
start = Time.now
|
||||
agent do
|
||||
puts "Rate: #{count / @duration}"
|
||||
duration = (Time.now - start)
|
||||
puts "Speed Rate: #{"%02.0f/sec" % (count / duration)}, Elapsed: #{duration}s"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue