<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,8 @@
 require &quot;rubygems&quot;
 require &quot;pdf/writer&quot;
 require &quot;pdf/simpletable&quot;
+gem &quot;pdf-wrapper&quot;, &quot;&gt;=0.1.2&quot;
+require &quot;pdf/wrapper&quot;
 require &quot;fastercsv&quot;
 require &quot;benchmark&quot;
 
@@ -43,6 +45,15 @@ end
 ##############################
 doc = Prawn::Document.new
 
+##############################
+# PDF::Wrapper Table Rendering Prep
+##############################
+wrapper_doc = PDF::Wrapper.new
+wrapper_table = PDF::Wrapper::Table.new do |t|
+  t.data = csv_data
+  t.table_options :font_size =&gt; 6
+end
+
 #######################
 # Benchmarking code   #
 #######################
@@ -50,6 +61,10 @@ doc = Prawn::Document.new
 puts &quot;Processing #{csv_data.length} records&quot;
 
 Benchmark.bmbm do |x|
+  x.report(&quot;PDF Wrapper&quot;) do
+    wrapper_doc.table( wrapper_table, :width =&gt; 100 ) unless wrapper_doc.finished?
+    wrapper_doc.render_to_file('currency_pdf_wrapper.pdf')
+  end
   x.report(&quot;Prawn&quot;) do
     doc.table(csv_data, :font_size =&gt; 10, :padding =&gt; 2, :position =&gt; :center)
     doc.render_file('currency_prawn.pdf')</diff>
      <filename>examples/table_bench.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8d4fef99fa437b65027d55d58e58851431d0b8fb</id>
    </parent>
  </parents>
  <author>
    <name>James Healy</name>
    <email>jimmy@deefa.com</email>
  </author>
  <url>http://github.com/yob/prawn/commit/bb388ec469e02b5baa73045e28160fe186c7c9f2</url>
  <id>bb388ec469e02b5baa73045e28160fe186c7c9f2</id>
  <committed-date>2008-06-19T23:11:27-07:00</committed-date>
  <authored-date>2008-06-19T23:11:27-07:00</authored-date>
  <message>added PDF::Wrapper to the table benchmark. Prawn is faster :)
- second run is unrealisticly fast. Documents in cairo can only be
  rendered once, so the second render call, no changes occur and a
  cached copy of the output is used
- Needs the latest EDGE copy of PDF::Wrapper</message>
  <tree>9af3bb88b7a5d9e8b455dda6aca7cdfd4ae57d4b</tree>
  <committer>
    <name>James Healy</name>
    <email>jimmy@deefa.com</email>
  </committer>
</commit>
