Created
April 18, 2012 06:13
-
-
Save jstorimer/2411410 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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