Skip to content

Instantly share code, notes, and snippets.

@jstorimer
Created April 18, 2012 06:13
Show Gist options
  • Save jstorimer/2411410 to your computer and use it in GitHub Desktop.
Save jstorimer/2411410 to your computer and use it in GitHub Desktop.
require 'benchmark'
# load Rails and gems
puts Benchmark.realtime { require './config/application' }
# open fifo
pipe = open 'zippy.pipe', 'r+'
loop do
filename = pipe.gets.strip
fork do
puts Benchmark.realtime { require File.expand_path filename }
end
Process.wait
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment