- fix date perf test (which runs 30% faster than logstash v1.1.12)

This commit is contained in:
Jordan Sissel 2013-05-29 19:41:01 -07:00
parent 48e23f7ac6
commit d994b10b56

View file

@ -21,15 +21,17 @@ describe LogStash::Filters::Date do
} }
filter { filter {
date { date {
mydate => "MMM dd HH:mm:ss Z" match => [ "mydate", "MMM dd HH:mm:ss Z" ]
} }
} }
output { null { } } output { null { } }
CONFIG CONFIG
2.times do
agent do agent do
puts "date parse rate: #{event_count / @duration}" puts "date parse rate: #{event_count / @duration}"
insist { @duration } < max_duration insist { @duration } < max_duration
end end
end end
end end
end