Sha256: a9f2661b1d15c8ca6e8588b225f8cd27d1ab6909b9f9b46135f52e3d23009cf8

Contents?: true

Size: 334 Bytes

Versions: 2

Compression:

Stored size: 334 Bytes

Contents

$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib")))
require 'ffi-opengl'

require 'benchmark'

MAX_FRAMES = 30000

Benchmark.bm do |x|
  x.report('ffi-opengl') { `ruby bench/ffi-opengl_spinning_cube.rb #{MAX_FRAMES}` }
  x.report('ruby-opengl') { `ruby bench/ruby-opengl_spinning_cube.rb #{MAX_FRAMES}` }
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
remogatto-ffi-opengl-0.2.1 bench/bench_spinning_cube.rb
ffi-opengl-0.2.1 bench/bench_spinning_cube.rb