<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -10,12 +10,21 @@ result = Benchmark.compare_realtime {
 }.with {
   do_it_another_way
 }
-puts result[ :results1 ][ :mean ]
-puts result[ :results2 ][ :mean ]
-puts result[ :significant ]
+Benchmark.report_on result
 
 See also example.rb for a more comprehensive example.
 
+## Example Output
+
+....................
+Set 1 mean: 0.484 s
+Set 1 std dev: 0.098
+Set 2 mean: 0.469 s
+Set 2 std dev: 0.088
+p.value: 0.601661885634415
+W: 220.0
+The difference (-3.2%) IS NOT statistically significant.
+
 ## Help, etc.
 
 irc.freenode.net#mathetes or http://mibbit.com/?server=irc.freenode.net&amp;channel=%23mathetes</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -2,22 +2,6 @@
 
 require 'better-benchmark'
 
-def report( result )
-  puts
-  puts( &quot;Set 1 mean: %.3f s&quot; % [ result[ :results1 ][ :mean ] ] )
-  puts( &quot;Set 1 std dev: %.3f&quot; % [ result[ :results1 ][ :stddev ] ] )
-  puts( &quot;Set 2 mean: %.3f s&quot; % [ result[ :results2 ][ :mean ] ] )
-  puts( &quot;Set 2 std dev: %.3f&quot; % [ result[ :results2 ][ :stddev ] ] )
-  puts &quot;p.value: #{result[ :p ]}&quot;
-  puts &quot;W: #{result[ :W ]}&quot;
-  puts(
-    &quot;The difference (%+.1f%%) %s statistically significant.&quot; % [
-      ( ( result[ :results2 ][ :mean ] - result[ :results1 ][ :mean ] ) / result[ :results1 ][ :mean ] ) * 100,
-      result[ :significant ] ? 'IS' : 'IS NOT'
-    ]
-  )
-end
-
 NUM_INNER_ITERATIONS = 500000
 
 # Provide two blocks of code to compare.  For example, two blocks that
@@ -43,5 +27,5 @@ result = Benchmark.compare_realtime(
     x = ( 1 &lt; 2 ? 'foo' : 'bar' )
   end  
 }
-report result
+Benchmark.report_on result
 </diff>
      <filename>example.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>67069c6a73c446df9590071df6ef626e9237acb0</id>
    </parent>
  </parents>
  <author>
    <name>Pistos</name>
    <email>gitsomegrace.5.pistos@geoshell.com</email>
  </author>
  <url>http://github.com/Pistos/better-benchmark/commit/e5d7573481b39850ecba3a966f4492e6fc336fc8</url>
  <id>e5d7573481b39850ecba3a966f4492e6fc336fc8</id>
  <committed-date>2008-05-29T20:07:09-07:00</committed-date>
  <authored-date>2008-05-29T20:07:09-07:00</authored-date>
  <message>Updated example and README to use Benchmark.report_on().</message>
  <tree>943513765a42e2cf511ea8c9d48e855e29452da1</tree>
  <committer>
    <name>Pistos</name>
    <email>gitsomegrace.5.pistos@geoshell.com</email>
  </committer>
</commit>
