Sha256: c5ac9d77624a89afeed25a59dcdf99a6ce70691e9bb0ad7506b1cf0c52629154

Contents?: true

Size: 649 Bytes

Versions: 10

Compression:

Stored size: 649 Bytes

Contents

class MysqlBenchmark < BenchmarkBase
    
  def benchmark_all( array_of_cols_and_vals )
    methods = self.methods.find_all { |m| m =~ /benchmark_/ }
    methods.delete_if{ |m| m =~ /benchmark_(all|model)/ }
    methods.each { |method| self.send( method, array_of_cols_and_vals ) }
  end
  
  def benchmark_myisam( array_of_cols_and_vals )
    bm_model( TestMyISAM, array_of_cols_and_vals )
  end
    
  def benchmark_innodb( array_of_cols_and_vals )
    bm_model( TestInnoDb, array_of_cols_and_vals )
  end
  
  def benchmark_memory( array_of_cols_and_vals )
    bm_model( TestMemory, array_of_cols_and_vals )
  end
    
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
activerecord-import-0.11.0 benchmarks/lib/mysql_benchmark.rb
activerecord-import-0.10.0 benchmarks/lib/mysql_benchmark.rb
activerecord-import-0.9.0 benchmarks/lib/mysql_benchmark.rb
activerecord-import-0.8.0 benchmarks/lib/mysql_benchmark.rb
activerecord-import-0.7.0 benchmarks/lib/mysql_benchmark.rb
activerecord-import-0.6.0 benchmarks/lib/mysql_benchmark.rb
activerecord-import-0.5.0 benchmarks/lib/mysql_benchmark.rb
activerecord-import-0.4.1 benchmarks/lib/mysql_benchmark.rb
activerecord-import-0.4.0 benchmarks/lib/mysql_benchmark.rb
activerecord-import-rails4-0.5.0 benchmarks/lib/mysql_benchmark.rb