performance/externals.rb in identity_cache-1.1.0 vs performance/externals.rb in identity_cache-1.2.0

- old
+ new

@@ -1,16 +1,17 @@ # frozen_string_literal: true -require 'rubygems' -require 'benchmark' -require 'ruby-prof' -require_relative 'cache_runner' +require "rubygems" +require "benchmark" +require "ruby-prof" +require_relative "cache_runner" + RUNS = 1000 RubyProf.measure_mode = RubyProf::CPU_TIME EXTERNALS = { "Memcache" => ["MemCache#set", "MemCache#get"], - "Database" => ["Mysql2::Client#query"] } + "Database" => ["Mysql2::Client#query"], } def run(obj) obj.prepare RubyProf.start obj.run