Sha256: 229e10757b5592cbea37c6c770d5f686da4d763356c96f8db5b27e123dca2852
Contents?: true
Size: 674 Bytes
Versions: 5
Compression:
Stored size: 674 Bytes
Contents
#!/usr/bin/env ruby unless RUBY_VERSION >= '1.9' require 'rubygems' require 'memprof' end $LOAD_PATH.unshift File.join(ENV['HERE'], '..', 'lib') require 'mysql2xxxx' format = ARGV[0] if RUBY_VERSION >= '1.9' # unfortunately can't use memprof a = Mysql2xxxx.const_get(format).new :user => ENV['DBUSER'], :password => ENV['DBPASSWORD'], :database => ENV['DBNAME'], :execute => ENV['EXECUTE'] a.to_path ENV['DUMP_PATH'] else Memprof.track(ENV['MEMPROF_REPORT_PATH']) do a = Mysql2xxxx.const_get(format).new :user => ENV['DBUSER'], :password => ENV['DBPASSWORD'], :database => ENV['DBNAME'], :execute => ENV['EXECUTE'] a.to_path ENV['DUMP_PATH'] end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
mysql2xxxx-0.2.1 | benchmark/target.rb |
mysql2xxxx-0.2.0 | benchmark/target.rb |
mysql2xxxx-0.1.1 | benchmark/target.rb |
mysql2xxxx-0.1.0 | benchmark/target.rb |
mysql2xxxx-0.0.4 | benchmark/target.rb |