Skip to content

Commit

Permalink
Update benchmark to use HashRedisStore
Browse files Browse the repository at this point in the history
  • Loading branch information
kbaum committed Jul 22, 2019
1 parent eb1537b commit 12f1c12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/benchmarks/benchmark.rake
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ namespace :benchmarks do
Coverband.configure do |config|
config.root = Dir.pwd
config.logger = $stdout
config.store = benchmark_redis_store(Coverband::Adapters::MultiKeyRedisStore)
config.store = benchmark_redis_store(Coverband::Adapters::HashRedisStore)
end
end

Expand Down Expand Up @@ -348,7 +348,7 @@ namespace :benchmarks do
desc 'runs memory reporting on Redis store'
task multi_key_memory_reporting: [:setup] do
puts 'runs memory benchmarking to ensure we dont leak'
measure_memory(Coverband::Adapters::MultiKeyRedisStore)
measure_memory(Coverband::Adapters::HashRedisStore)
end

desc 'runs memory reporting on report_coverage'
Expand Down Expand Up @@ -383,7 +383,7 @@ namespace :benchmarks do
desc 'runs benchmarks on reporting large sets of files to multi key redis redis'
task multi_key_redis_reporting: %i[setup] do
puts 'runs benchmarks on reporting large sets of files to redis'
reporting_speed(Coverband::Adapters::MultiKeyRedisStore)
reporting_speed(Coverband::Adapters::HashRedisStore)
end

# desc 'runs benchmarks on default redis setup'
Expand Down Expand Up @@ -420,7 +420,7 @@ namespace :benchmarks do
require 'memory_profiler'
require './test/unique_files'
# ensure we cleared from last run
benchmark_redis_store(Coverband::Adapters::MultiKeyRedisStore).clear!
benchmark_redis_store(Coverband::Adapters::HashRedisStore).clear!
run_big
end

Expand Down

0 comments on commit 12f1c12

Please sign in to comment.