Skip to content

Instantly share code, notes, and snippets.

@abaldwin88
Created February 20, 2019 01:22
Show Gist options
  • Save abaldwin88/c2efc1dfdb5f5d5884111ef8765bdb1c to your computer and use it in GitHub Desktop.
Save abaldwin88/c2efc1dfdb5f5d5884111ef8765bdb1c to your computer and use it in GitHub Desktop.
NUMBER_OF_TRIALS = 100
SEARCH_TERMS = ['scott', 'blake']
results = Hash.new { |h, k| h[k] = [] }
NUMBER_OF_TRIALS.times do |i|
SEARCH_TERMS.each do |term|
results[term] << benchmark_get(term)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment