Sha256: 056501de80c40af72d7e137c069eb10de87905f78e8bb8e317f0fca331d58512
Contents?: true
Size: 1.44 KB
Versions: 5
Compression:
Stored size: 1.44 KB
Contents
# Run the benchmark with benchmark_driver as: # # $ benchmark-driver benchmarks/render.yml --output gruff --runner ips -e '/path/to/bin/ruby;/path/to/bin/ruby-3.0.0 --jit' # $ benchmark-driver benchmarks/render.yml --output compare --runner memory -e '/path/to/bin/ruby;/path/to/bin/ruby-3.0.0 --jit' # $ benchmark-driver benchmarks/render.yml -e '/home/strzibny/.rubies/ruby-2.7.0/bin/ruby;/home/strzibny/.rubies/ruby-3.0.0/bin/ruby;/home/strzibny/.rubies/ruby-3.0.0/bin/ruby --jit' # # Note: You need to install invoice_printer as a gem for the require to work. loop_count: 3000 prelude: | require 'invoice_printer' provider_address = <<ADDRESS Rolnicka 1 747 05 Opava Katerinky ADDRESS purchaser_address = <<ADDRESS Ostravska 1 747 70 Opava ADDRESS item = InvoicePrinter::Document::Item.new( name: 'Programming', quantity: '10', unit: 'hr', price: '$ 90', amount: '$ 900' ) invoice = InvoicePrinter::Document.new( number: 'NO. 198900000001', provider_name: 'John White', provider_lines: provider_address, purchaser_name: 'Will Black', purchaser_lines: purchaser_address, issue_date: '05/03/2016', due_date: '19/03/2016', total: '$ 900', bank_account_number: '156546546465', items: [item], note: 'This is a note at the end.' ) benchmark: render: | InvoicePrinter.print( document: invoice, file_name: 'simple_invoice_a4.pdf', page_size: :a4 )
Version data entries
5 entries across 5 versions & 1 rubygems