Sha256: e7085bc246933a297e9b0f63d4f89b93c9b2707a5a80ef2e95c34b71c0797c2b
Contents?: true
Size: 379 Bytes
Versions: 6
Compression:
Stored size: 379 Bytes
Contents
#!/usr/bin/env ruby require 'time' def sample(arr) arr[rand arr.length] end begin loop do url = "/#{sample %w(users products photos)}/#{rand(1000)}" time = Time.now.iso8601 rtime = rand(1_000_000) status = sample [200, 302] puts [status, time, rtime, url].join("\t") $stdout.flush sleep rand(10).to_f / 100.0 end rescue Interrupt exit 0 end
Version data entries
6 entries across 6 versions & 1 rubygems