<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>speed.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2,18 +2,20 @@ require 'rubygems'
 require 'ruby-prof'
 require &quot;#{File.dirname(__FILE__)}/lib/redis&quot;
 
-@r = Redis.new
-@r['foo'] = &quot;The first line we sent to the server is some text&quot;
 
 mode = ARGV.shift || 'process_time'
+n = (ARGV.shift || 200).to_i
+
+r = Redis.new
 RubyProf.measure_mode = RubyProf.const_get(mode.upcase)
 RubyProf.start
-100.times do |i|
-  @r[&quot;foo#{i}&quot;] = &quot;The first line we sent to the server is some text&quot;
-  10.times do
-    @r[&quot;foo#{i}&quot;]
-  end
+
+n.times do |i|
+  key = &quot;foo#{i}&quot;
+  r[key] = key * 10
+  r[key]
 end
+
 results = RubyProf.stop
 File.open(&quot;profile.#{mode}&quot;, 'w') do |out|
   RubyProf::CallTreePrinter.new(results).print(out)</diff>
      <filename>profile.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7dcec25fd3c212f62be6935babe93b72d4d7a85f</id>
    </parent>
  </parents>
  <author>
    <name>Jeremy Kemper</name>
    <email>jeremy@bitsweat.net</email>
  </author>
  <url>http://github.com/ezmobius/redis-rb/commit/844e33c42996142a2a01a18d246d0d2bb487eee9</url>
  <id>844e33c42996142a2a01a18d246d0d2bb487eee9</id>
  <committed-date>2009-03-22T14:14:16-07:00</committed-date>
  <authored-date>2009-02-27T16:54:06-08:00</authored-date>
  <message>speed

Signed-off-by: ezmobius &lt;ez@engineyard.com&gt;</message>
  <tree>dbbe2a802ec1ed5ba128c323ecc41942f0d13b28</tree>
  <committer>
    <name>ezmobius</name>
    <email>ez@engineyard.com</email>
  </committer>
</commit>
