File: benchmark.rb

package info (click to toggle)
ruby-rqrcode-core 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 328 kB
  • sloc: ruby: 1,346; sh: 4; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 255 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "rqrcode_core"
require "benchmark"

Benchmark.bm do |benchmark|
  benchmark.report("RQRCode") do
    1000.times do
      RQRCodeCore::QRCode.new("https://kyan.com").to_s
    end
  end
end