mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
remove old test stuff
This commit is contained in:
parent
bcd9dae5bd
commit
f97b40c8af
2 changed files with 0 additions and 28 deletions
|
@ -1,17 +0,0 @@
|
|||
$: << "lib"
|
||||
require "logstash/event"
|
||||
require "thread"
|
||||
|
||||
q = Queue.new
|
||||
|
||||
Thread.abort_on_exception = true
|
||||
iterations = 500000
|
||||
|
||||
Thread.new { iterations.times { |i| q << LogStash::Event.new } }
|
||||
|
||||
start = Time.now
|
||||
popper = Thread.new { iterations.times { q.pop } }
|
||||
popper.join
|
||||
duration = Time.now - start
|
||||
rate = iterations / duration
|
||||
puts "Rate: #{rate}"
|
|
@ -1,11 +0,0 @@
|
|||
$: << "lib"
|
||||
require "logstash/time"
|
||||
|
||||
start = Time.now
|
||||
count = 500000
|
||||
|
||||
count.times { LogStash::Time.now }
|
||||
duration = Time.now - start
|
||||
rate = count / duration
|
||||
|
||||
puts "Rate: #{rate}"
|
Loading…
Add table
Add a link
Reference in a new issue