```ruby
require "test_utils"
require "logstash/filters/date"

describe LogStash::Filters::Date do
  extend LogStash::RSpec

  describe "performance test of java syntax parsing" do

    event_count = 100000
    min_rate = 10000

    max_duration = event_count / min_rate
    input = "Nov 24 01:29:01 -0800"
    config <<-CONFIG
      input {
        generator {
          add_field => ["mydate", "#{input}"]
          count => #{event_count}
          type => "generator"
        }
      }
      filter {
        date {
          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
end
```

Reduce expected rate of date parses for now
user
```ruby
require "test_utils"
require "logstash/filters/date"

describe LogStash::Filters::Date do
  extend LogStash::RSpec

  describe "performance test of java syntax parsing" do

    event_count = 100000
    min_rate = 5000

    max_duration = event_count / min_rate
    input = "Nov 24 01:29:01 -0800"
    config <<-CONFIG
      input {
        generator {
          add_field => ["mydate", "#{input}"]
          count => #{event_count}
          type => "generator"
        }
      }
      filter {
        date {
          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
end
```
assistant