Skip to content

Commit

Permalink
di primitive bench
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Jul 13, 2024
1 parent a4df721 commit c909844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/concurrency_primitives.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ def run_benchmark
suite: report_to_dogstatsd_if_enabled_via_environment_variable(benchmark_name: 'di_instrument')
)

hash = Concurrent::Map.new(a: 1, b: 2, c: 3, d: 4, e: 5, f: 6, g: 7, h: 9, i: 10)
map = Concurrent::Map.new(a: 1, b: 2, c: 3, d: 4, e: 5, f: 6, g: 7, h: 9, i: 10)

x.report('Concurrent::Map access') do
hash[:a]
map[:a]
end

x.save! 'concurrency-primitives-results.json' unless VALIDATE_BENCHMARK_MODE
Expand Down

0 comments on commit c909844

Please sign in to comment.