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