File: bench_helper.rb

package info (click to toggle)
ruby-ffi 1.0.11debian-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,488 kB
  • sloc: ansic: 6,608; ruby: 6,167; xml: 151; sh: 74; makefile: 12
file content (6 lines) | stat: -rw-r--r-- 220 bytes parent folder | download
1
2
3
4
5
6
require "rubygems"
#require 'ffi/times' if RUBY_PLATFORM =~ /java/
require 'benchmark'
require 'ffi'
ITER = ENV['ITER'] ? ENV['ITER'].to_i : 100000
LIBTEST_PATH = "#{Dir.getwd}/build/libtest.#{FFI::Platform::LIBSUFFIX}"