Sha256: 4c8d9ffd209e7346a12421e27ca9a1b19a0506312d7150af940d46c1ba778f00

Contents?: true

Size: 605 Bytes

Versions: 45

Compression:

Stored size: 605 Bytes

Contents

class Mysql2Benchmark < 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| 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

45 entries across 45 versions & 3 rubygems

Version Path
activerecord-import-1.4.0 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-1.3.0 benchmarks/lib/mysql2_benchmark.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/activerecord-import-1.2.0/benchmarks/lib/mysql2_benchmark.rb
activerecord-import-1.2.0 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-1.1.0 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-1.0.8 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-1.0.7 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-1.0.6 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-1.0.5 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-1.0.4 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-1.0.3 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-1.0.2 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-1.0.1 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-1.0.0 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-0.28.2 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-0.28.1 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-0.28.0 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-0.27.0 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-0.26.0 benchmarks/lib/mysql2_benchmark.rb
activerecord-import-0.25.0 benchmarks/lib/mysql2_benchmark.rb