lib/sp_store/benchmark/synthetic_benchmark.rb
# print node cache hit rate results then reset
print node cache hit rate results then reset
print node cache hit rate results then reset
def output_node_hit_rate
    cache_controller = @bmconfig.sp_controller.instance_variable_get(:@hash_tree_controller)
    node_to_load     = cache_controller.total_node_to_load
    node_needed      = cache_controller.total_node_needed
    puts "node cache hit rate = 1 - #{node_to_load}/#{node_needed} = #{(1-node_to_load.to_f/node_needed)*100}%"
    cache_controller.reset_hit_info
  end
def output_node_hit_rate cache_controller = @bmconfig . sp_controller . instance_variable_get ( :@hash_tree_controller ) node_to_load = cache_controller . total_node_to_load node_needed = cache_controller . total_node_needed puts "node cache hit rate = 1 - #{node_to_load}/#{node_needed} = #{(1-node_to_load.to_f/node_needed)*100}%" cache_controller . reset_hit_info end
print node cache hit rate results then reset
print node cache hit rate results then reset