mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
make the date perf test smarter
This commit is contained in:
parent
dcd534de95
commit
a2097a5890
1 changed files with 6 additions and 2 deletions
|
@ -6,8 +6,10 @@ describe LogStash::Filters::Date do
|
|||
|
||||
describe "performance test of java syntax parsing" do
|
||||
|
||||
event_count = 50000
|
||||
max_duration = 10
|
||||
event_count = 100000
|
||||
min_rate = 10000
|
||||
|
||||
max_duration = event_count / min_rate
|
||||
input = "Nov 24 01:29:01 -0800"
|
||||
config <<-CONFIG
|
||||
input {
|
||||
|
@ -22,9 +24,11 @@ describe LogStash::Filters::Date do
|
|||
mydate => "MMM dd HH:mm:ss Z"
|
||||
}
|
||||
}
|
||||
output { null { } }
|
||||
CONFIG
|
||||
|
||||
agent do
|
||||
puts "date parse rate: #{event_count / @duration}"
|
||||
insist { @duration } < max_duration
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue