Sha256: 425b40305be75e58072c99945185a3c047c9b02c54e0d6928f098465f8317c17
Contents?: true
Size: 727 Bytes
Versions: 117
Compression:
Stored size: 727 Bytes
Contents
require_relative 'benchmark_helper' require 'flydata/parser/mysql/dump_parser' require 'zlib' require 'ruby-prof' INSERT_TEST_FILE_NAME = case ARGV[0] when 'num' 'insert_parser_test_data_num_only.sql.gz' else 'insert_parser_test_data.sql.gz' end INSERT_TEST_FILE_PATH = File.realpath("data/#{INSERT_TEST_FILE_NAME}", File.dirname(__FILE__)) def readline_gz_file(gz_file_path = INSERT_TEST_FILE_PATH) Zlib::GzipReader.open(gz_file_path) {|f| return f.readline} end @test_line = readline_gz_file def subject Flydata::Parser::Mysql::MysqlDumpParser::InsertParser.new.parse(@test_line) end subject
Version data entries
117 entries across 117 versions & 1 rubygems