TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Really Slow Site for Testing HTTP Caches.

39 pointsby 0x44over 14 years ago

8 comments

chaosmachineover 14 years ago
<a href="http://reallyslowsite.com/-1" rel="nofollow">http://reallyslowsite.com/-1</a><p>Apparently time travel is out of the question.
StavrosKover 14 years ago
<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!
edanmover 14 years ago
Nice.<p>The "copyright" line is <i>really</i> tiny. Your twitter usernames are there, and I assume you want people to see them, so I'd make it larger.
评论 #1824601 未加载
mnuttover 14 years ago
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)
评论 #1825653 未加载
0x44over 14 years ago
Whoops, the original implementation used microseconds it now uses seconds (with a max of ten).
评论 #1824687 未加载
atuladharover 14 years ago
<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."
评论 #1824890 未加载
jrockwayover 14 years ago
This site is slow :)<p>I don't know Ruby, but how does this work:<p><pre><code> get '/', :agent =&#62; /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?
评论 #1824851 未加载
bjonathanover 14 years ago
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?
评论 #1824778 未加载