lib/sp_store/benchmark/synthetic_benchmark.rb
# store benchmark configurations and test iteration times 
store benchmark configurations and test iteration times
store benchmark configurations and test iteration times
def run_with_controller(controller_type)
    puts "For #{controller_type}:"
    session = create_session @bmconfig.instance_variable_get("@#{controller_type}")
    (0...@test_iter_num).each do |iter_id|
      output_detail_timing_info "For #{controller_type}:" if @bmconfig.detailed_timing
      if controller_type == "sp_controller"
        @bmconfig.sp_controller.reset_node_cache unless @bmconfig.node_cache_reset
      end
      reset_random_seed iter_id
      measure_time do
        run_one_test session
      end
      if controller_type == "sp_controller"
        output_node_hit_rate if @bmconfig.node_hit_rate
        @bmconfig.node_cache_reset = false
      end
    end
  end
def run_with_controller ( controller_type ) puts "For #{controller_type}:" session = create_session @bmconfig . instance_variable_get ( "@#{controller_type}" ) ( 0 ... @test_iter_num ) . each do | iter_id | output_detail_timing_info "For #{controller_type}:" if @bmconfig . detailed_timing if controller_type == "sp_controller" @bmconfig . sp_controller . reset_node_cache unless @bmconfig . node_cache_reset end reset_random_seed iter_id measure_time do run_one_test session end if controller_type == "sp_controller" output_node_hit_rate if @bmconfig . node_hit_rate @bmconfig . node_cache_reset = false end end end
store benchmark configurations and test iteration times
store benchmark configurations and test iteration times
controller_type