mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
- fix date perf test (which runs 30% faster than logstash v1.1.12)
This commit is contained in:
parent
48e23f7ac6
commit
d994b10b56
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
agent do
|
2.times do
|
||||||
puts "date parse rate: #{event_count / @duration}"
|
agent do
|
||||||
insist { @duration } < max_duration
|
puts "date parse rate: #{event_count / @duration}"
|
||||||
|
insist { @duration } < max_duration
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue