remove old test stuff

This commit is contained in:
Jordan Sissel 2012-10-18 22:55:53 -07:00
parent bcd9dae5bd
commit f97b40c8af
2 changed files with 0 additions and 28 deletions

View file

@ -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}"

View file

@ -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}"