Sha256: 17c0774cedbdd904fa0227f87a8c56b697845f437b626b9f5169a0d1ed5d6c2d

Contents?: true

Size: 976 Bytes

Versions: 1

Compression:

Stored size: 976 Bytes

Contents

# Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved. This
# code is released under a tri EPL/GPL/LGPL license. You can use it,
# redistribute it and/or modify it under the terms of the:
#
# Eclipse Public License version 1.0
# GNU General Public License version 2
# GNU Lesser General Public License version 2.1

require "mock-logger"

require "psd/renderer/compose"

if ENV.include? 'BENCH_9000_NATIVE'
  require "oily_png/oily_png"
  require "psd_native/psd_native"
else
  require "chunky_png/color"
  require "psd/renderer/compose"
end

def micro_harness_input
  0x11223344
end

def micro_harness_iterations
  1_000_000
end

if ENV.include? 'BENCH_9000_NATIVE'
  def micro_harness_sample(value)
    PSDNative::Compose::linear_dodge(value, value, PSD::Compose::DEFAULT_OPTS)
  end
else
  def micro_harness_sample(value)
    PSD::Compose::linear_dodge(value, value)
  end
end

def micro_harness_expected
  0x1A355075
end

require 'bench9000/micro-harness'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bench9000-0.1 benchmarks/psd.rb/psd-compose-linear-dodge.rb