1
0
planet_express/scripts/generate_input.rb
Tim Kächele 87d4205f40 Add performance benchmarking scripts
Add scripts that were used to generate a halfway realistic
set of inputs
2021-11-22 19:56:39 +01:00

14 lines
268 B
Ruby

require 'date'
def build(n)
shipping_options = ['S', 'M', 'L']
provider = ['MR', 'LP']
today = Date.today
n.times do |n|
today + (n / 100.to_f)
puts "#{(today + n).iso8601} #{shipping_options.sample} #{provider.sample}"
end
end
build(ARGV[0].to_i)