<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,49 +1,49 @@
 require File.dirname(__FILE__) + &quot;/../lib/lib&quot;
 require 'benchmark'
 
-# img = img(File.dirname(__FILE__) + &quot;/../fixtures/cart_gray.jpg&quot;)
-#  
-# n = 10
-# Benchmark.bm do |x|
-#   x.report(&quot;two_d_array_with_view&quot;) { n.times do; ar = img.two_d_array_with_view; end }
-#   x.report(&quot;two_d_array_with_export_pixels&quot;) { n.times do; ar = img.two_d_array_with_export_pixels; end }
-#   x.report(&quot;two_d_array_with_dispatch&quot;) { n.times do; ar = img.two_d_array_with_dispatch; end }
-#   x.report(&quot;two_d_array_with_get_pixels&quot;) { n.times do; ar = img.two_d_array_with_get_pixels; end }
-# end
-# 
-# color = img(File.dirname(__FILE__) + &quot;/../fixtures/color.jpg&quot;)
-# locations_array = []
-# 0.upto(color.columns-1) do |column|
-#   0.upto(color.rows-1) do |row|
-#     locations_array &lt;&lt; [column,row]
-#   end
-# end
-# 
-# 
-# Benchmark.bm do |x|
-#   x.report(&quot;manipulate_pixels_with_get_pixels&quot;) {
-#     color = img(File.dirname(__FILE__) + &quot;/../fixtures/color.jpg&quot;)
-#     color.manipulate_pixels_with_get_pixels(locations_array) do |pixel|
-#       gray_val = (0.3 * pixel.red + 0.59 * pixel.green + 0.11 *pixel.blue)
-#       gray(gray_val)
-#     end
-#   }
-#   x.report(&quot;manipulate_pixels_with_export_pixels&quot;) {
-#     color = img(File.dirname(__FILE__) + &quot;/../fixtures/color.jpg&quot;)
-#     color.manipulate_pixels_with_export_pixels(locations_array) do |pixel_array|
-#       gray_val = (0.3 * pixel_array[0] + 0.59 * pixel_array[1] + 0.11 * pixel_array[2])
-#       [gray_val, gray_val, gray_val]
-#     end
-#   }
-#   x.report(&quot;manipulate_pixels_with_view&quot;) {
-#     color = img(File.dirname(__FILE__) + &quot;/../fixtures/color.jpg&quot;)
-#     color.manipulate_pixels_with_view(locations_array) do |pixel|
-#       gray_val = (0.3 * pixel.red + 0.59 * pixel.green + 0.11 *pixel.blue)
-#       gray(gray_val)
-#     end
-#   }
-# end
-# 
+img = img(File.dirname(__FILE__) + &quot;/../fixtures/cart_gray.jpg&quot;)
+ 
+n = 10
+Benchmark.bm do |x|
+  x.report(&quot;two_d_array_with_view&quot;) { n.times do; ar = img.two_d_array_with_view; end }
+  x.report(&quot;two_d_array_with_export_pixels&quot;) { n.times do; ar = img.two_d_array_with_export_pixels; end }
+  x.report(&quot;two_d_array_with_dispatch&quot;) { n.times do; ar = img.two_d_array_with_dispatch; end }
+  x.report(&quot;two_d_array_with_get_pixels&quot;) { n.times do; ar = img.two_d_array_with_get_pixels; end }
+end
+
+color = img(File.dirname(__FILE__) + &quot;/../fixtures/color.jpg&quot;)
+locations_array = []
+0.upto(color.columns-1) do |column|
+  0.upto(color.rows-1) do |row|
+    locations_array &lt;&lt; [column,row]
+  end
+end
+
+
+Benchmark.bm do |x|
+  x.report(&quot;manipulate_pixels_with_get_pixels&quot;) {
+    color = img(File.dirname(__FILE__) + &quot;/../fixtures/color.jpg&quot;)
+    color.manipulate_pixels_with_get_pixels(locations_array) do |pixel|
+      gray_val = (0.3 * pixel.red + 0.59 * pixel.green + 0.11 *pixel.blue)
+      gray(gray_val)
+    end
+  }
+  x.report(&quot;manipulate_pixels_with_export_pixels&quot;) {
+    color = img(File.dirname(__FILE__) + &quot;/../fixtures/color.jpg&quot;)
+    color.manipulate_pixels_with_export_pixels(locations_array) do |pixel_array|
+      gray_val = (0.3 * pixel_array[0] + 0.59 * pixel_array[1] + 0.11 * pixel_array[2])
+      [gray_val, gray_val, gray_val]
+    end
+  }
+  x.report(&quot;manipulate_pixels_with_view&quot;) {
+    color = img(File.dirname(__FILE__) + &quot;/../fixtures/color.jpg&quot;)
+    color.manipulate_pixels_with_view(locations_array) do |pixel|
+      gray_val = (0.3 * pixel.red + 0.59 * pixel.green + 0.11 *pixel.blue)
+      gray(gray_val)
+    end
+  }
+end
+
 n=100
 Benchmark.bmbm do |x|
   x.report(&quot;export_pixels_as_str&quot;) {
@@ -90,23 +90,17 @@ Benchmark.bmbm do |x|
     n.times {
       i = Image.new(150,150)
       i.import_pixels(0,0,150,150,&quot;RGB&quot;,exported_pixels)
-      # i.destroy!
     }
-    # GC.start
   }
   x.report(&quot;store_pixels&quot;) {
     n.times {
       i = Image.new(150,150)
       i.store_pixels(0,0,150,150,getted_pixels)
-      # i.destroy!
     }
-    # GC.start
   }
   x.report(&quot;constitute&quot;) {
     n.times {
       i = Image.constitute(150,150,&quot;RGB&quot;,dispatched_pixels)
-      # i.destroy!
     }
-    # GC.start
   }
 end
\ No newline at end of file</diff>
      <filename>benchmark/benchmark.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>27f721955abebed175b102682ff375160796e40d</id>
    </parent>
  </parents>
  <author>
    <name>Cory</name>
    <email>cory.forsyth@gmail.com</email>
  </author>
  <url>http://github.com/bantic/image_labs/commit/73d363641ac8935d63b239f724239eb94eeaa3c0</url>
  <id>73d363641ac8935d63b239f724239eb94eeaa3c0</id>
  <committed-date>2009-03-28T01:01:13-07:00</committed-date>
  <authored-date>2009-03-28T01:01:13-07:00</authored-date>
  <message>Updated benchmarks</message>
  <tree>b60582bfccf4815db6fad62f06117603afd3e998</tree>
  <committer>
    <name>Cory</name>
    <email>cory.forsyth@gmail.com</email>
  </committer>
</commit>
