Skip to content

Instantly share code, notes, and snippets.

@rdp
Created March 15, 2010 13:33
Show Gist options
  • Select an option

  • Save rdp/332826 to your computer and use it in GitHub Desktop.

Select an option

Save rdp/332826 to your computer and use it in GitHub Desktop.
E:\dev\ruby\hitimes\spec>spec *
..................*........................FF.FFFFFF.FF..F.................FFF.FFFFF..FF..F...................FF.....................
Pending:
Hitimes::MutexedStats is unsafe normally (not for MRI -- not interruptable in this C extension)
E:/dev/ruby/hitimes/spec/mutex_stats_spec.rb:22:in `block in <top (required)>'
1)
'Hitimes::TimedMetric calculates the rate of the counts ' FAILED
expected 20.0 +/- (< 0.1), got 15.7316775176301
E:/dev/ruby/hitimes/spec/timed_metric_spec.rb:53:in `block (2 levels) in <top (required)>'
2)
'Hitimes::TimedMetric calculates the stddev of the durations' FAILED
expected 0.05 +/- (< 0.001), got 0.0570967877626702
E:/dev/ruby/hitimes/spec/timed_metric_spec.rb:59:in `block (2 levels) in <top (required)>'
3)
'Hitimes::TimedMetric keeps track of the min value' FAILED
expected 0.05 +/- (< 0.002), got 0.0580286041941085
E:/dev/ruby/hitimes/spec/timed_metric_spec.rb:68:in `block (2 levels) in <top (required)>'
4)
'Hitimes::TimedMetric keeps track of the max value' FAILED
expected 0.05 +/- (< 0.002), got 0.0624959317455151
E:/dev/ruby/hitimes/spec/timed_metric_spec.rb:73:in `block (2 levels) in <top (required)>'
5)
'Hitimes::TimedMetric keeps track of the sum value' FAILED
expected 0.1 +/- (< 0.002), got 0.120844967726345
E:/dev/ruby/hitimes/spec/timed_metric_spec.rb:78:in `block (2 levels) in <top (required)>'
6)
'Hitimes::TimedMetric keeps track of the sum of squars value' FAILED
expected 0.0075 +/- (< 0.0001), got 0.0116839783417938
E:/dev/ruby/hitimes/spec/timed_metric_spec.rb:83:in `block (2 levels) in <top (required)>'
7)
'Hitimes::TimedMetric keeps track of the minimum start time of all the intervals' FAILED
expected: > 1.26866006023438e+015,
got: 1.26866006023438e+015
E:/dev/ruby/hitimes/spec/timed_metric_spec.rb:90:in `block (2 levels) in <top (required)>'
8)
'Hitimes::TimedMetric keeps track of the last stop time of all the intervals' FAILED
expected: < 1.26866006085938e+015,
got: 1.26866006085944e+015
E:/dev/ruby/hitimes/spec/timed_metric_spec.rb:102:in `block (2 levels) in <top (required)>'
9)
'Hitimes::TimedMetric can measure a block of code from an instance' FAILED
expected 0.15 +/- (< 0.001), got 0.183145623256587
E:/dev/ruby/hitimes/spec/timed_metric_spec.rb:116:in `block (2 levels) in <top (required)>'
10)
'Hitimes::TimedMetric returns the value of the block when measuring' FAILED
expected 0.05 +/- (< 0.001), got 0.0624157539575561
E:/dev/ruby/hitimes/spec/timed_metric_spec.rb:123:in `block (2 levels) in <top (required)>'
11)
'Hitimes::TimedMetric#to_hash has the right sum' FAILED
expected 0.45 +/- (< 0.002), got 0.52109807252039
E:/dev/ruby/hitimes/spec/timed_metric_spec.rb:143:in `block (3 levels) in <top (required)>'
12)
'Hitimes::TimedValueMetric calculates the mean of the durations' FAILED
expected 0.05 +/- (< 0.01), got 0.0611851506266858
E:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:51:in `block (2 levels) in <top (required)>'
13)
'Hitimes::TimedValueMetric calculates the rate of the counts ' FAILED
expected 40.0 +/- (< 0.2), got 32.1288134254476
E:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:57:in `block (2 levels) in <top (required)>'
14)
'Hitimes::TimedValueMetric calculates the stddev of the durations' FAILED
expected 0.05 +/- (< 0.001), got 0.0548334740510773
E:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:63:in `block (2 levels) in <top (required)>'
15)
'Hitimes::TimedValueMetric keeps track of the min value' FAILED
expected 0.05 +/- (< 0.001), got 0.0622766301303657
E:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:74:in `block (2 levels) in <top (required)>'
16)
'Hitimes::TimedValueMetric keeps track of the max value' FAILED
expected 0.05 +/- (< 0.001), got 0.0625448206406121
E:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:80:in `block (2 levels) in <top (required)>'
17)
'Hitimes::TimedValueMetric keeps track of the sum value' FAILED
expected 0.15 +/- (< 0.01), got 0.187496455555105
E:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:86:in `block (2 levels) in <top (required)>'
18)
'Hitimes::TimedValueMetric keeps track of the sum of squares value' FAILED
expected 0.0075 +/- (< 0.0001), got 0.0112050516835187
E:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:92:in `block (2 levels) in <top (required)>'
19)
'Hitimes::TimedValueMetric keeps track of the minimum start time of all the intervals' FAILED
expected: > 1.26866006323438e+015,
got: 1.26866006323438e+015
E:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:100:in `block (2 levels) in <top (required)>'
20)
'Hitimes::TimedValueMetric can measure a block of code from an instance' FAILED
expected 0.15 +/- (< 0.001), got 0.186774017368129
E:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:126:in `block (2 levels) in <top (required)>'
21)
'Hitimes::TimedValueMetric returns the value of the block when measuring' FAILED
expected 0.05 +/- (< 0.001), got 0.0625266619081475
E:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:134:in `block (2 levels) in <top (required)>'
22)
'Hitimes::TimedValueMetric#to_hash has a rate' FAILED
expected 40.0 +/- (< 0.3), got 32.5147152329912
E:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:154:in `block (3 levels) in <top (required)>'
23)
'Hitimes::ValueMetric keeps track of the first start time of all the measurements' FAILED
expected: > 1.26866006510938e+015,
got: 1.26866006510938e+015
E:/dev/ruby/hitimes/spec/value_metric_spec.rb:63:in `block (2 levels) in <top (required)>'
24)
'Hitimes::ValueMetric keeps track of the last stop time of all the intervals' FAILED
expected: < 1.26866006510938e+015,
got: 1.26866006510942e+015
E:/dev/ruby/hitimes/spec/value_metric_spec.rb:76:in `block (2 levels) in <top (required)>'
Finished in 6.453125 seconds
133 examples, 24 failures, 1 pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment