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

Version Path
flydata-0.8.10.2 benchmark/insert_parser_prof.rb
flydata-0.8.10.1 benchmark/insert_parser_prof.rb
flydata-0.8.9.11 benchmark/insert_parser_prof.rb
flydata-0.8.10 benchmark/insert_parser_prof.rb
flydata-0.8.9 benchmark/insert_parser_prof.rb
flydata-0.8.8 benchmark/insert_parser_prof.rb
flydata-0.8.7 benchmark/insert_parser_prof.rb
flydata-0.8.6 benchmark/insert_parser_prof.rb
flydata-0.8.5 benchmark/insert_parser_prof.rb
flydata-0.8.4 benchmark/insert_parser_prof.rb
flydata-0.8.3 benchmark/insert_parser_prof.rb
flydata-0.8.2 benchmark/insert_parser_prof.rb
flydata-0.8.1 benchmark/insert_parser_prof.rb
flydata-0.8.0 benchmark/insert_parser_prof.rb
flydata-0.7.19 benchmark/insert_parser_prof.rb
flydata-0.7.18 benchmark/insert_parser_prof.rb
flydata-0.7.17 benchmark/insert_parser_prof.rb
flydata-0.7.16 benchmark/insert_parser_prof.rb
flydata-0.7.15 benchmark/insert_parser_prof.rb
flydata-0.7.14 benchmark/insert_parser_prof.rb