mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- do perf tests twice to avoid warm-up/compilation costs
This commit is contained in:
parent
d0191b2665
commit
1c4e2b84f4
1 changed files with 5 additions and 3 deletions
|
@ -65,9 +65,11 @@ describe LogStash::Event do
|
|||
end
|
||||
|
||||
it "should be fast?" do
|
||||
start = Time.now
|
||||
100000.times { subject["[j][k1]"] }
|
||||
puts "Duration: #{Time.now - start}"
|
||||
2.times do
|
||||
start = Time.now
|
||||
100000.times { subject["[j][k1]"] }
|
||||
puts "Duration: #{Time.now - start}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue