about summary refs log tree commit homepage
path: root/test/test_stats.rb
diff options
context:
space:
mode:
authorevanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9>2008-02-20 06:15:30 +0000
committerevanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9>2008-02-20 06:15:30 +0000
commit5a10ba13b2c2f56b8ffb0978ebb36ff26a7715e5 (patch)
treee93ee8070152cb99b3f4bfde01e776677ca6d0a4 /test/test_stats.rb
parentaf1e1581afac9437e623eb54ef533f240858fd47 (diff)
downloadunicorn-5a10ba13b2c2f56b8ffb0978ebb36ff26a7715e5.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/branches/stable_1-1@973 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'test/test_stats.rb')
-rw-r--r--test/test_stats.rb35
1 files changed, 0 insertions, 35 deletions
diff --git a/test/test_stats.rb b/test/test_stats.rb
deleted file mode 100644
index 404870a..0000000
--- a/test/test_stats.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright (c) 2005 Zed A. Shaw
-# You can redistribute it and/or modify it under the same terms as Ruby.
-#
-# Additional work donated by contributors.  See http://mongrel.rubyforge.org/attributions.html
-# for more information.
-
-require 'test/testhelp'
-
-class StatsTest < Test::Unit::TestCase
-
-  def test_sampling_speed
-    out = StringIO.new
-
-    s = Mongrel::Stats.new("test")
-    t = Mongrel::Stats.new("time")
-
-    100.times { s.sample(rand(20)); t.tick }
-
-    s.dump("FIRST", out)
-    t.dump("FIRST", out)
-    
-    old_mean = s.mean
-    old_sd = s.sd
-
-    s.reset
-    t.reset
-    100.times { s.sample(rand(30)); t.tick }
-    
-    s.dump("SECOND", out)
-    t.dump("SECOND", out)
-    assert_not_equal old_mean, s.mean
-    assert_not_equal old_mean, s.sd    
-  end
-
-end