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.5.8 benchmark/insert_parser_prof.rb
flydata-0.5.7 benchmark/insert_parser_prof.rb
flydata-0.5.6 benchmark/insert_parser_prof.rb
flydata-0.5.5 benchmark/insert_parser_prof.rb
flydata-0.5.4 benchmark/insert_parser_prof.rb
flydata-0.5.3 benchmark/insert_parser_prof.rb
flydata-0.5.2 benchmark/insert_parser_prof.rb
flydata-0.5.1 benchmark/insert_parser_prof.rb
flydata-0.5.0 benchmark/insert_parser_prof.rb
flydata-0.4.3 benchmark/insert_parser_prof.rb
flydata-0.4.2 benchmark/insert_parser_prof.rb
flydata-0.4.1 benchmark/insert_parser_prof.rb
flydata-0.4.0 benchmark/insert_parser_prof.rb
flydata-0.3.24 benchmark/insert_parser_prof.rb
flydata-0.3.23 benchmark/insert_parser_prof.rb
flydata-0.3.22 benchmark/insert_parser_prof.rb
flydata-0.3.21 benchmark/insert_parser_prof.rb
flydata-0.3.20 benchmark/insert_parser_prof.rb
flydata-0.3.19 benchmark/insert_parser_prof.rb
flydata-0.3.18 benchmark/insert_parser_prof.rb