30 comments

  • Alifatisk37 days ago
    The site is indeed instant, those performance tricks does work (inline everything, botli compression, cache, edge network like cdn), BUT the site is also completely empty, it shows nothing except a placeholder.<p>Things can easily change when you start adding functionalities. One site I like to visit to remind myself of how fast usable websites can be, is Dlangs forum. I just navigate around to get the experience.<p><a href="https:&#x2F;&#x2F;forum.dlang.org" rel="nofollow">https:&#x2F;&#x2F;forum.dlang.org</a>
    • Aurornis37 days ago
      &gt; One site I like to visit to remind myself of how fast usable websites can be, is Dlangs forum. I just navigate around to get the experience<p>Interestingly, for me each page load takes a noticeably long delay. Once it starts loading all of the content snaps in almost at once. It’s slower to get there than the other forums I visit though.
    • hcaz36 days ago
      Another super super fast website is <a href="https:&#x2F;&#x2F;www.mcmaster.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.mcmaster.com&#x2F;</a>
    • TehShrike37 days ago
      I made a fast usable product page recently <a href="https:&#x2F;&#x2F;www.buyadagger.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.buyadagger.com&#x2F;</a>
      • ai_37 days ago
        It&#x27;s crazy how unusable most gun websites are for browsing what&#x27;s available. This though is the perfect example of what I really want when browsing catalogues.
      • HelloUsername37 days ago
        Doesn&#x27;t work without Javascript?
        • TehShrike36 days ago
          Correct, all the filtering is done locally in the browser, and the deploy is purely static.<p>If PSA had let me use affiliate links, I was planning to do the work to SSR in a Cloudflare Worker, but they declined and I decided to call the project where it was.
    • benhurmarcel37 days ago
      Some sites can be very simple and yet quite useful. For example <a href="https:&#x2F;&#x2F;rawdiary.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;rawdiary.com&#x2F;</a> always impresses me with its speed.
  • PunchyHamster38 days ago
    One time I decided to check how much faster <i>really</i> you can go while still getting decent usability out of &quot;simple blog platform&quot; type of webapp.<p>End result, written in go, did around 80-200us to generate post page and 150-200us (on cheap linode VPS... probably far faster on my dev machine) for index page with a bunch of posts.<p>Core was basically<p>* pre-compile the templates<p>* load blogpost into RAM, pre-compile and cache the markdown part<p>cache could be easily kicked off to redis or similar but it&#x27;s just text, there is no need<p>Fun stuff I hit around:<p>* runtime template loading takes <i>a lot</i> just for the type-casting; the template framework I used was basically thin veneer over Go code that got compiled to Go code when ran<p>* it was fast enough that multiple Write() vs one was noticeable on flame graph<p>* smart caching will get you everywhere if you get cache invalidation right, making the &quot;slow&quot; parts not matter; unless you&#x27;re running years of content and gigabytes of text you probably don&#x27;t want to cache it anywhere else than in RAM or at the very least have over-memory cache be second tier.<p>The project itself was rewrite of same thing that I tried in Perl(using Mojolicious) and even there it achieved single digit ms.<p>And it feels so... weird, using webpage that just reacts with speed that the well-written native app has. Whole design process was going against the ye olde &quot;don&#x27;t optimize prematurely&quot; and it was complete success, looking at performance in each iteration of component paid off really quickly. We got robbed of so much time from badly running websites.
    • jonathanstrange37 days ago
      I had my page served with Go and it was instant, 100% speed score. Then I moved the static content to a CDN and it&#x27;s slower now, only 96% speed. However, the question is really how fast the page is when it comes under heavy load.
  • cuu50838 days ago
    &gt; First visit: ~30ms. Real JavaScript executes at the edge.<p>It appears to have static content. Why does it need any JS at all?
    • bayesnet38 days ago
      Thank goodness it’s real JavaScript and not that knockoff js unscrupulous vendors are using to cut costs
    • ramon15638 days ago
      Because OP let an LLM generate the text and couldn&#x27;t be bothered to measure :)
    • jakelazaroff38 days ago
      &quot;At the edge&quot; means &quot;on a server located close to where you are&quot;. It&#x27;s used to serve the HTML.<p>Looks like the only JavaScript running on the client is for installing the service worker and some Cloudflare tracking junk.
      • aprilnya38 days ago
        Workers doesn’t require JS to serve static content though. You upload it as a static asset and it does it for you.
      • cuu50838 days ago
        Right, but any old CDN can do that. Why does it need CF workers?
  • freetonik38 days ago
    My blog directory&#x2F;search engine [1] runs on Cloudflare workers as well. I was able to get pretty good results, too. For example, the listing of 1200+ blogs [2], each with 5 latest posts, loads in ~500ms. A single post with a list of related posts, loads in ~200ms. Yeah, it&#x27;s still a lot, but it includes all the normal web app logic like auth middlewares, loading user settings, and states; everything is rendered server-side, no rich frontend code (apart from htmx for a couple of buttons to make simple one-off requests like &quot;subscribe to blog&quot; or &quot;add to favorites&quot;). A static page (like &#x2F;about) usually loads in ~100ms.<p>This is a bit stochastic because of regions and dynamic allocation of resources. So, e.g. if you&#x27;re the first user from a large georgraphic region to visit the website in the last several hours, your first load will be longer.<p>My other project (a blog platform) contains a lot of optimizations, so posts [3] load pretty much as fast as that example from the thread, i.e. 60-70ms.<p>1. <a href="https:&#x2F;&#x2F;minifeed.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;minifeed.net&#x2F;</a><p>2. <a href="https:&#x2F;&#x2F;minifeed.net&#x2F;blogs" rel="nofollow">https:&#x2F;&#x2F;minifeed.net&#x2F;blogs</a><p>3. <a href="https:&#x2F;&#x2F;rakhim.exotext.com&#x2F;but-what-if-i-really-want-a-faster-horse" rel="nofollow">https:&#x2F;&#x2F;rakhim.exotext.com&#x2F;but-what-if-i-really-want-a-faste...</a>
  • yuvadam37 days ago
    For static content this isn&#x27;t fast.<p>For a dynamic service, well.. maybe implement something of interest and then we can discuss.
  • ahepp37 days ago
    &gt; Immutable caching Cache-Control:max-age=31536000, immutable<p>Why brag about how it&#x27;s not static content, if you&#x27;re just going to tell the browser to cache it until the end of time anyways?
  • oefrha38 days ago
    &gt; ~2.5KB Brotli Smaller than most images.<p>Brotli is so 2024. Use zstd. (73.62%, I know. Slightly worse compression ratio, I know that too.)
    • ComputerGuru37 days ago
      Do browsers use a custom dictionary for zstd (I don’t think so since I can precompress zstd content server-side)?<p>Brotli was designed for html compression so despite&#x2F;while being a relatively inferior algorithm, its stock dictionary is all html&#x2F;css&#x2F;js-trained&#x2F;optimized. Chrome&#x2F;Blink recently added support for seeing content compressed with a bespoke dictionary, but that only works for massive sites that have a heavily skewed new&#x2F;returning visit ratio (because of the cost of shipping both the compressed content and the dictionary).<p>Long story short, I could see br being better than zstd for basic web purposes.
  • Brajeshwar38 days ago
    This is interesting and need to look into.<p>I decided to go check my website’s PageSpeed and I do have a 100&#x2F;100&#x2F;100&#x2F;100 with pretty lots of content on the homepage including 6 separate thumbnails.<p>My site is on a straight path, no tricks — Github Pages Served to the Internet by Cloudflare.
  • liveoneggs37 days ago
    These are not impressive numbers and, obviously, browser cache is fast.<p>Pretty much any small payload&#x2F;non-javascript site is going to render very quickly (and instantly from cache) making SSL time be the long pole.
  • 131738 days ago
    well yes alright but it would be more impressive if there was actually something interesting there to see
  • predkambrij37 days ago
    Speed: 217ms 289ms<p>I have 5G network :)<p>Also, heard multiple times that edge network can be worse, because if you&#x27;re low prio and other part of globe is not busy, you get it routed in worst possible way.
  • onion2k37 days ago
    Getting a site to load quickly isn&#x27;t that difficult from a technical perspective. You just need to strip out everything that slows it down. If you can deliver a page of HTML and inlined CSS that renders without JS or images then your site <i>will</i> be fast (or at least it&#x27;ll be perceived as fast, which is fine.) So long as you&#x27;re using some fairly reputable hosting infrastructure (AWS, Azure, Google, etc), and if you&#x27;re rendering on the server you&#x27;re not doing silly things on the hot path, then you don&#x27;t need to worry about speed.<p>The hard part when it comes to site optimization is persuading various stakeholders who want GTM, Clarity, Dynatrace, DataDog, New Relic, 7 different ad retargeters, Meta, X, and probably AI as well now that a fast loading website is more important than the data they get from whichever of those things they happen to be interested in.<p>For any individual homepage where that stuff isn&#x27;t an issue because the owner is making all the decisions, it&#x27;s fair to say that if your site loads slowly it&#x27;s because <i>you</i> chose to make it slow. For any large business, it&#x27;s because &#x27;the business&#x27; chose to make it slow.
    • a45646337 days ago
      Exactly. My site loads fast with no images causes it is a demo site. Sure Jan!
    • koakuma-chan37 days ago
      [flagged]
      • onion2k37 days ago
        <i>Start your own company.</i><p>Eventually you&#x27;ll want to know what users are doing, and specifically why they&#x27;re not doing what you expected them to do after you spent ages crafting the perfect user journeys around your app. Then you&#x27;ll start wondering if installing something to record sessions is actually a great idea that could really help you optimize things for people and get them more engaged (and spending more money.)<p>Fast forward three years, and you&#x27;ll be looking at the source of a page wondering how things got so bad.
        • razakel37 days ago
          You forgot the best bit - not removing the ones you no longer use!
        • skydhash37 days ago
          &gt; Eventually you&#x27;ll want to know what users are doing, and specifically why they&#x27;re not doing what you expected them to do after you spent ages crafting the perfect user journeys around your app<p>That&#x27;s putting the cart before the horse. The way it&#x27;s properly done is just to invite a few users and measure and track their interaction with your software. And this way you&#x27;d have good feedback instead of frustrating your real users with slow software.
          • onion2k37 days ago
            Yeah, you&#x27;ll do that, and get great feedback, and then when you roll it out to other users they&#x27;ll do weird stuff you&#x27;ve not seen any of the test group try before.<p>Users being weird are the fundamental root cause of all software problems. :)
            • skydhash37 days ago
              Users can’t click a button that does not exist. It’s on product and engineering to curtail what the user can do. Optimizing for the happy path while not eliminating the incorrect flow is just bad software engineering.
              • koakuma-chan37 days ago
                Yeah I agree. I bet that guy is using JavaScript and MongoDB or something, and he is wondering why things break.
  • IshKebab37 days ago
    What does this page do that needs workers though? Looks like it could be static HTML to me.<p>I think most sites could either be static HTML and use a CDN, or they need a database and pretty much have to be located in one place anyway.<p>It&#x27;s quite hard to think of use cases where that isn&#x27;t true.
  • RestartKernel37 days ago
    Speed:<p>- 3942ms<p>- 4281ms<p>Guess it depends on your region. This is from East-Asia.
  • bryanrasmussen37 days ago
    hmm, it seems the last static site I did is slightly faster <a href="https:&#x2F;&#x2F;nissestyrelsen.dk&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nissestyrelsen.dk&#x2F;</a> but probably just because it&#x27;s hosted in country near me, if I was somewhere else probably much worse. Not that I care that much to really research it, I figure it&#x27;s fast enough and just a funny idea.
  • meling37 days ago
    Wish more pages were as fast as this, despite this site’s simplicity… In particular GitHub could really benefit from less bloat and faster rendering.
  • JodieBenitez37 days ago
    It&#x27;s not fast.
  • efilife37 days ago
    Am I crazy? Why do I feel like all the text on the page was written by a LLM? I started seeing this everywhere
  • efortis38 days ago
    another trick is adding speculation rules on MPA sites. so when you hover over a link the page gets prerendered. For example, my initial page takes ~80ms, but navigating to other pages take 20ms<p><pre><code> prerender: [ { where: { href_matches: &#x27;&#x2F;*&#x27; }, eagerness: &#x27;moderate&#x27; } ] </code></pre> That doesn&#x27;t work on Safari, FF, and Brave, but you could do something like this:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ericfortis&#x2F;mockaton&#x2F;blob&#x2F;main&#x2F;www&#x2F;src&#x2F;_assets&#x2F;speculation.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ericfortis&#x2F;mockaton&#x2F;blob&#x2F;main&#x2F;www&#x2F;src&#x2F;_as...</a>
    • chmod77538 days ago
      Most adblockers&#x2F;privacy extensions disable this.<p>uBlock Origin does it by default for instance.
      • efortis38 days ago
        Do they block &lt;link rel=prefetch&gt; completely?<p>On Brave, the workaround on that linked snippet bypasses their blocking.
        • chmod77537 days ago
          Well, uBlock Origin sets network.prefetch-next=false and network.dns.disablePrefetch=true, so yes.<p>The reason is that browser prefetching may hit URLs that were intended to be blocked.
  • s_ting76538 days ago
    The perfect lighthouse score might have changed since this was last updated. Am seeing 97% on accessibility.
  • dontlaugh37 days ago
    Over 800ms is not even a little fast. I’m on WiFi to ADSL, lights static websites are way faster than that.
  • suralind37 days ago
    I still appreciate that you shared this even though other comments are correct that there isn’t much content on the page. Frankly speaking, more devs should put more thought into performance.<p>I’m currently working on a small e-commerce store for myself, written in SvelteKit (frontend) and Go (backend) and one of my core objectives is to make it fast. Not crazy fast, but looking for TTFB &lt; 50-70ms for an average Polish user. Will definitely share it once it’s public.
  • underdeserver37 days ago
    First load took 3.8 seconds for me.
  • est38 days ago
    I believe CF Page is faster.
    • mpeg38 days ago
      CF pages is built on top of workers, you can serve static html assets from either of them too.
  • TZubiri37 days ago
    &quot;TL;DR: This isn&#x27;t a cached HTML file. Real code runs at the edge in ~30ms. After your first visit:~4ms from browser cache!&quot;<p>Maybe add some dynamic feature for the demo so that we don&#x27;t need to trust you and be surprised at a nothingburger.
  • Terretta38 days ago
    <p><pre><code> Speed: 74ms 241ms </code></pre> … LOL …<p>These 30 ms and 4 ms numbers were typical Apache to Netscape from MAE East and MAE West in 1998. Twenty five years and orders of magnitude more computing later? Same numbers.
    • davidmurdoch38 days ago
      But now it&#x27;s that fast from almost everywhere on the planet, with nearly zero effort from the developer. We&#x27;ve been limited by light speed here, not compute.
      • gnz1138 days ago
        I get 381ms&#x2F;401ms on first load and not the claimed ~30ms. I&#x27;m not really sure what the point is here though. CDNs and browser cache headers work? Static sites are fast to paint?
        • davidmurdoch38 days ago
          Yeah, I&#x27;m not seeing fast uncached times either. I usually hit Cloudflare&#x27;s Miami datacenter, which is only about 200 miles and very low latency. But I&#x27;m seeing 200+ms on this site right now.
          • Eikon37 days ago
            Most cloudflare products are very slow &#x2F; offer very poor performance. I was surprised by this but that’s just how it is. It basically negates any claimed performance advantage.<p>Durable objects, r2 as well as tunnel have been particularly poor performing in my experience. Workers has not been a great experience either.<p>R2 in particular has been the slowest &#x2F; highest latency s3 alternative I ever had experience with, falling behind backblaze b2, wasabi and even hetzner’s object storage.
            • aatd8637 days ago
              got 12&#x2F;31ms and 6&#x2F;13ms cached so Cloudlfare muat not be that slow in Europe after all... ;)
        • Aurornis37 days ago
          I also got initial load times in that range.<p>The site <i>should</i> be faster, though. I’ve had a small CF workers project that works correctly with quick load times.
      • coherentpony37 days ago
        The circumference of Earth at the equator is about 40,000 km and the speed of light is about 300,000 km&#x2F;s. The appropriate division results in about 0.13 s.<p>That seems to track. The vast majority of requests won’t go half way around the Earth, so maybe halving that time at 0.06 seems like a reasonable target.
        • AnonC37 days ago
          Light travels at about 0.69c in fiber optic cables (c being the speed of light in vacuum, which, as you stated, is about 300,000 km&#x2F;s).
          • coherentpony36 days ago
            Ah yes I forgot about that. Thanks for the correction.
      • ivanjermakov38 days ago
        Not to mention that device count went up million fold.
      • PunchyHamster38 days ago
        nah, most sites are fat enough that both bandwidth and compute is the limit.<p>Getting it closer can save you 50-150ms, but if whole load takes 1s+ that&#x27;s minuscule
        • davidmurdoch38 days ago
          I only meant in this example. I agree, sites in general are fat.
    • usrnm38 days ago
      I know, right? Almost 30 years and no progress in the speed of light? What are all these engineers even doing?
      • nrhrjrjrjtntbt38 days ago
        Right right! Like we used to have concord back in the day and we are just getting slower innit.
      • elcritch37 days ago
        I believe that FTL communication (if it&#x27;s achievable) will start out in data centers at small scales. Perhaps millimeters.<p>Possibly as an extension of Quantum Computing where some probabilistic asymmetry can be taken advantage of. The QC itself might not be faster than classical computing, but the FTL comms could improve memory and cache access.<p>Also MetaGoog will use it to serve up hyper personalized ads in their Gemini based Metaverse.
    • neogodless37 days ago
      Speed: 350ms 1330ms<p>Is the site getting slower?
    • weird-eye-issue38 days ago
      Physics. It&#x27;s literally just physics.<p>And with Workers they&#x27;re accessible from hundreds of locations around the world so you can get this sort of speed from almost anywhere.
  • doublerabbit38 days ago
    &quot;A super fast static website using Cloudflare workers&quot;<p>Add imagery and see if you get the same results. I expect you could achieve such with Base64 but the caveat would be larger file sizes.
  • jasoncartwright38 days ago
    Yeah, it&#x27;s really quick because there is pretty much nothing on it
    • amosWeiskopf37 days ago
      I agree. Not impressed, frankly. Cloudflare workers is just even-more localized CDN, and the benefit is so tiny that it&#x27;s not worth the investment nor maintenance costs. (I wrote extensively about this non-thing here: <a href="https:&#x2F;&#x2F;wskpf.com&#x2F;takes&#x2F;you-dont-need-a-cdn-for-seo" rel="nofollow">https:&#x2F;&#x2F;wskpf.com&#x2F;takes&#x2F;you-dont-need-a-cdn-for-seo</a>). My site (<a href="https:&#x2F;&#x2F;wskpf.com" rel="nofollow">https:&#x2F;&#x2F;wskpf.com</a>), which has way more elements and, err, stuff, loads in 50ms, and unless you are superman or an atomic clock, you wouldn&#x27;t care. same lighthouse scores as this one, but with no CDN nor cloudflare workers, and it actually has stuff on it.
      • maxmcd37 days ago
        TCP performance gets quite poor over long distances. CDNs are very helpful if you&#x27;re trying to make your site work well far away from your servers.
        • amosWeiskopf36 days ago
          I think the bottleneck is rarely CDN. Think about it - my server sits in Germany. My target audience is in the US. My latency to the west coast is 150ms. I can see it being a big thing in competitive online game, but for website load performance it&#x27;s less than the blink of an eye. The real bottleneck is usually poorly configured page or some bloated JS.
      • doodlesdev37 days ago
        Your site took over a second to load for me from Brazil. Are you sure CDNs are that worthless?
        • amosWeiskopf36 days ago
          I do, because the 120ms latency that CDN solves is a drop in the bucket compared to the 2.5 seconds (desktop) or 8 seconds (mobile) it takes for the average website to load almost entirely due to un-optimized images and poor code (based on <a href="https:&#x2F;&#x2F;www.hostinger.com&#x2F;in&#x2F;tutorials&#x2F;website-load-time-statistics" rel="nofollow">https:&#x2F;&#x2F;www.hostinger.com&#x2F;in&#x2F;tutorials&#x2F;website-load-time-sta...</a>)
  • vivzkestrel37 days ago
    next stop: lets install nextjs and give it a try shall we?
  • aleksandrm38 days ago
    Is this real?