Skip to content

Instantly share code, notes, and snippets.

@rdp
Created March 12, 2010 20:21
Show Gist options
  • Save rdp/330733 to your computer and use it in GitHub Desktop.
Save rdp/330733 to your computer and use it in GitHub Desktop.
C:\dev\ruby\hitimes\spec>spec *spec.rb
..................*........................FF.FFFFF..FF..F.................FFF.FFFFF..FF..F...................FF.....................
Pending:
Hitimes::MutexedStats is unsafe normally (not for MRI -- not interruptable in this C extension)
C:/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 16.0340116552518
C:/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.0542541916487946
C:/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.0623654682368849
C:/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.0624191063389341
C:/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.12388362208046
C:/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.011347204405165
C:/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: > 1268425076530625.00000000000000000000,
got: 1268425076530625.00000000000000000000
C:/dev/ruby/hitimes/spec/timed_metric_spec.rb:90:in `block (2 levels) in <top (required)>'
8)
'Hitimes::TimedMetric can measure a block of code from an instance' FAILED
expected 0.15 +/- (< 0.001), got 0.186895820558199
C:/dev/ruby/hitimes/spec/timed_metric_spec.rb:116:in `block (2 levels) in <top (required)>'
9)
'Hitimes::TimedMetric returns the value of the block when measuring' FAILED
expected 0.05 +/- (< 0.001), got 0.0583607693156532
C:/dev/ruby/hitimes/spec/timed_metric_spec.rb:123:in `block (2 levels) in <top (required)>'
10)
'Hitimes::TimedMetric#to_hash has the right sum' FAILED
expected 0.45 +/- (< 0.002), got 0.519319354834204
C:/dev/ruby/hitimes/spec/timed_metric_spec.rb:143:in `block (3 levels) in <top (required)>'
11)
'Hitimes::TimedValueMetric calculates the mean of the durations' FAILED
expected 0.05 +/- (< 0.01), got 0.0622692735156749
C:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:51:in `block (2 levels) in <top (required)>'
12)
'Hitimes::TimedValueMetric calculates the rate of the counts ' FAILED
expected 40.0 +/- (< 0.2), got 32.0931519032851
C:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:57:in `block (2 levels) in <top (required)>'
13)
'Hitimes::TimedValueMetric calculates the stddev of the durations' FAILED
expected 0.05 +/- (< 0.001), got 0.057559137125799
C:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:63:in `block (2 levels) in <top (required)>'
14)
'Hitimes::TimedValueMetric keeps track of the min value' FAILED
expected 0.05 +/- (< 0.001), got 0.0577104073283057
C:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:74:in `block (2 levels) in <top (required)>'
15)
'Hitimes::TimedValueMetric keeps track of the max value' FAILED
expected 0.05 +/- (< 0.001), got 0.0624797285688544
C:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:80:in `block (2 levels) in <top (required)>'
16)
'Hitimes::TimedValueMetric keeps track of the sum value' FAILED
expected 0.15 +/- (< 0.01), got 0.182708975582092
C:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:86:in `block (2 levels) in <top (required)>'
17)
'Hitimes::TimedValueMetric keeps track of the sum of squares value' FAILED
expected 0.0075 +/- (< 0.0001), got 0.0116119426188868
C:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:92:in `block (2 levels) in <top (required)>'
18)
'Hitimes::TimedValueMetric keeps track of the minimum start time of all the intervals' FAILED
expected: > 1268425079530625.00000000000000000000,
got: 1268425079530625.00000000000000000000
C:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:100:in `block (2 levels) in <top (required)>'
19)
'Hitimes::TimedValueMetric can measure a block of code from an instance' FAILED
expected 0.15 +/- (< 0.001), got 0.187871084174106
C:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:126:in `block (2 levels) in <top (required)>'
20)
'Hitimes::TimedValueMetric returns the value of the block when measuring' FAILED
expected 0.05 +/- (< 0.001), got 0.0617084014867811
C:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:134:in `block (2 levels) in <top (required)>'
21)
'Hitimes::TimedValueMetric#to_hash has a rate' FAILED
expected 40.0 +/- (< 0.3), got 32.0522876870439
C:/dev/ruby/hitimes/spec/timed_value_metric_spec.rb:154:in `block (3 levels) in <top (required)>'
22)
'Hitimes::ValueMetric keeps track of the first start time of all the measurements' FAILED
expected: > 1268425081405625.00000000000000000000,
got: 1268425081405625.00000000000000000000
C:/dev/ruby/hitimes/spec/value_metric_spec.rb:63:in `block (2 levels) in <top (required)>'
23)
'Hitimes::ValueMetric keeps track of the last stop time of all the intervals' FAILED
expected: < 1268425081405625.00000000000000000000,
got: 1268425081405700.25000000000000000000
C:/dev/ruby/hitimes/spec/value_metric_spec.rb:76:in `block (2 levels) in <top (required)>'
Finished in 6.421875 seconds
133 examples, 23 failures, 1 pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment