Skip to content

Instantly share code, notes, and snippets.

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