Permalink
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 340 Bytes
# frozen_string_literal: true
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'prawn'
require 'benchmark'
N = 100
Benchmark.bmbm do |x|
x.report('PNG Type 6') do
N.times do
Prawn::Document.new do
image "#{Prawn::DATADIR}/images/dice.png"
end.render_file('dice.pdf')
end
end
end