Sha256: 180192d2ff036484ca403a8e5af91a12ea205992bbfeec647429cae75eceb097
Contents?: true
Size: 511 Bytes
Versions: 4
Compression:
Stored size: 511 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require "net/http" app_path = File.expand_path('../examples/constant_caches.ru', __dir__) puts "Booting server..." pid = Process.spawn(*ARGV, app_path, out: File::NULL, err: File::NULL) sleep 5 app_url = "http://localhost:#{ENV.fetch('PORT')}/" puts "Warming the app with ab..." system("ab", "-c", "4", "-n", "500", app_url, out: File::NULL, err: File::NULL) sleep 3 puts "Memory Usage:" puts Net::HTTP.get(URI(app_url)) Process.kill("INT", pid) Process.wait
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pitchfork-0.16.0 | benchmark/cow_benchmark.rb |
pitchfork-0.15.0 | benchmark/cow_benchmark.rb |
pitchfork-0.14.0 | benchmark/cow_benchmark.rb |
pitchfork-0.13.0 | benchmark/cow_benchmark.rb |