This graph shows daily aggregates of the Time to First Byte (TTFB) latency of the inbrowser.link Service Worker Gateway. We collect the data with our Tiros measurement suite. The tooltip shows the number of samples that went into the calculation of each data point as well as the fainted bars in the background.
Tiros makes requests for the https://inbrowser.link/ipfs/{cid} path endpoint in a headless Chromium instance and then measures the time until the first byte of the actual content was seen by the browser. This means that the TTFB performance includes the download and initialization of the service worker code and various redirects to configure the browser. The performance will likely be worse than the plain HTTP Gateways but you need to consider three things:
https://inbrowser.link/ipfs/{cid}
In short, service worker gateways are generally more secure and once initialized subsequent retrievals don't exhibit the startup performance penalty.
The data is segmented along the dimensions: region, cache status, and CID source.
We have deployed our Tiros measurement suite in different AWS regions around the world. They correspond to the following region identifiers:
eu-central-1
us-east-2
us-west-1
ap-southeast-2
When the content for a CID is requested via a service worker gateway, it races two resolution paths:
trustless-gateway.link
If the request was served internally served via a trustless gateway, we determine whether a request was cached or not by parsing the response headers and evaluating the headers: cf-cache-status, x-filebase-edge-cache, and x-cache.
cf-cache-status
x-filebase-edge-cache
x-cache
The result can be a cache hit or miss. Thirdly, if the request was served directly by a peer, we mark that data as "direct".
We have two types of sources for CIDs that we request from the gateways: controlled and organic. The controlled CIDs correspond to random 1kB data blobs that we host on a controlled Kubo node in us-east-1. The idea is to use these blobs to measure a baseline performance of the gateways under controlled conditions.
The organic CIDs come from our Bitswap Sniffer tool that has picked them up by observing bitswap traffic. Measuring the retrieval performance for these CIDs can be used as a proxy to what users on average would perceive when interacting with IPFS gateways. It is useful to track long term trends.
Daily Uninitialized Time to First Byte Latency of the inbrowser.link Service Worker Gateway.