Sha256: 5963847e9cc47d112017a482077d96d9dfa7537c5066d414774abd3c80d1eb82
Contents?: true
Size: 817 Bytes
Versions: 1
Compression:
Stored size: 817 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 if ENV.include? 'BENCH_9000_NATIVE' require "oily_png/oily_png" else require "chunky_png/canvas/resampling" end class MockCanvas if ENV.include? 'BENCH_9000_NATIVE' include OilyPNG::Resampling else include ChunkyPNG::Canvas::Resampling end public :steps end def harness_input MockCanvas.new end def harness_sample(input) input.steps(1_000_000, 5_000_000) end def harness_verify(output) output.inject(:+) == 2499997500000 end require 'bench9000/harness'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bench9000-0.1 | benchmarks/chunky_png/chunky-canvas-resampling-steps.rb |