<a href="http://cache.historious.net/cached/662705/" rel="nofollow">http://cache.historious.net/cached/662705/</a><p>Your site just revealed a bug in historious, thank you!
This is one of the things that node.js is really good at, and it's interesting that the sample code on the front page of nodejs.org was pretty similar to this app. Here's the rough equivalent in node:<p><pre><code> require('http').createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});
var time = Math.max(0, Math.min(60000, parseInt(request.url.slice(1)) || 0));
setTimeout(function() {
response.end('This page load took ' + time + 'ms\n');
}, time);
}).listen(8124);
</code></pre>
(They have since changed it, and I suspect that it was because new users were confused as to why their supposedly "fast" server always took 2 seconds to respond to requests)<p>(edit: code formatting)
<a href="http://github.com/rconradharris/reallyslowsite.com/blob/master/server.rb#L13" rel="nofollow">http://github.com/rconradharris/reallyslowsite.com/blob/mast...</a><p>One of the "slower than" expressions has an unnecessary "than."
This site is slow :)<p>I don't know Ruby, but how does this work:<p><pre><code> get '/', :agent => /curl/ do
(slow_thing, time) = slow_down(DEFAULT_SLEEP)
"SLOWER THAN #{slow_ting}. Putting the brakes on for #{time} seconds.\n"
end
</code></pre>
It binds slow_thing and then references it as slow_ting (without the h) in the interpolation? What?<p>It appears twice so it must be intentional?
Hello, I have no doubt that this tool is really usefull. But as a non techie I dont understand the purpose. Can somebody explain me or refer me to an article that can explain why test HTTP caches and what is it?