Sha256: 98133b559bb800834773a75a307a233eae703a879907125576aba65878e9b002

Contents?: true

Size: 323 Bytes

Versions: 3

Compression:

Stored size: 323 Bytes

Contents

$LOAD_PATH << 'lib'
require 'imgix'
require 'benchmark/ips'

client = Imgix::Client.new(domain: 'domain.com', secure_url_token: 'token')
path = client.path("/img.jpg")

Benchmark.ips do |x|
  x.report('Imgix::Path#to_url') do
    path.to_url({ auto: 'compress,format', fit: 'crop', crop: 'top', w: 590, h: 332 })
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
imgix-4.1.0 script/bench_to_url.rb
imgix-4.0.3 script/bench_to_url.rb
imgix-4.0.2 script/bench_to_url.rb