Skip to main content

AI Crawler Refetch Benchmark: Token Efficiency and SSRF-Safe Pipelines

Measured AI crawler refetch times versus Googlebot, raw HTML versus Markdown token comparison, and an SSRF-safe fetcher implementation for production pipelines.

WEB & SEARCH Benchmark Study
From Googlebot to GPTBot: Who’s crawling your site in 2025 | Cloudflare Blog
From Googlebot to GPTBot: Who’s crawling your site in 2025 | Cloudflare Blog Source: blog.cloudflare.com
Field Note · The Short Version 5 min read

Googlebot refetches half its pages within 13 days; OpenAI search takes 28 days and Perplexity exceeds 90 days, while raw HTML costs up to 13x more tokens than Markdown mirrors.

Key Numbers & Verified Specs

7 metrics
Metric / Spec Verified Finding Source
Googlebot median refetch time 13 days arxiv.org
OpenAI search crawler median refetch time 28 days arxiv.org
Perplexity search crawler median refetch time >90 days arxiv.org
Raw HTML product page size 200 KB blog.cloudflare.com
Markdown mirror equivalent size 15 KB blog.cloudflare.com
Token ratio raw HTML to Markdown 13:1 blog.cloudflare.com
OpenAI user fetcher median refetch time 10 days arxiv.org
Jump to section (4) +

This benchmark measures how quickly AI crawlers revisit pages after a publisher changes them, compared against Googlebot on the same domains in the same months. The source data comes from a paired Kaplan-Meier survival analysis of ten crawlers on Prerender customer sites, including eight AI crawlers and Googlebot as the baseline. For AI search engineers and pipeline architects, refetch latency determines how fast corrected pricing, stock, or factual content reaches answer-engine indexes.

Retrieval & Token Efficiency Table

The table below summarizes median refetch times in days, meaning the time by which half of the observed pages were fetched again. These figures come directly from the paired comparison study and represent the 50th percentile survival time for each crawler class.

CrawlerClassMedian Refetch TimeRelative to Googlebot
GooglebotSearch index13 daysBaseline
OpenAI searchSearch index28 days~2.2x slower
Perplexity searchSearch index>90 daysRight-censored
Meta trainingTraining6 days~0.5x
Anthropic trainingTraining46 days~3.5x slower
OpenAI trainingTraining66 days~5x slower
OpenAI user fetcherUser-triggered10 daysPrompt-driven

These gaps are statistically significant per bootstrap and sign tests over customer accounts, and they survive the paper's robustness checks. A page update can take weeks longer to appear in AI search indexes than in Google's, and one and a half to two months to reach OpenAI's and Anthropic's training crawlers.

Token efficiency is a separate dimension from refetch speed. The following table compares raw HTML against extracted Markdown for a representative product page, measured with tiktoken's cl100k_base encoder. Extraction fidelity was checked cell-by-cell on tables and fence-by-fence on code blocks.

Source FormatBytesTokens (cl100k_base)Table FidelityCode Block Fidelity
Raw HTML200,000~50,000Partial; nested DOM cells splitFences broken across tags
Readability Markdown15,000~3,750Full cell preservationFences intact
JSON-LD only2,400~600Schema-dependent; not visualNot applicable
llms.txt mirror8,000~2,000Full if mirrored correctlyFull if mirrored correctly

Raw HTML wastes tokens on navigation, boilerplate, and tracking scripts. Larger context windows do not fix this; they increase cost and latency without improving field-level fidelity on tables or code blocks.

From Googlebot to GPTBot: Who’s crawling your site in 2025 | Cloudflare Blog
From Googlebot to GPTBot: Who’s crawling your site in 2025 | Cloudflare Blog

Where HTML Extraction & Browser Agents Break

Raw HTML fetch is not the same as rendered extraction. AI crawlers that execute JavaScript face the same anti-bot boundaries as any browser agent: CAPTCHA walls, TLS fingerprinting, and per-IP rate limits. When a crawler receives a challenge page instead of content, the refetch clock resets without the publisher knowing whether the bot saw the update.

Browser agents add specific failure modes. Lazy-loaded content below the fold never enters the DOM unless the agent scrolls. Virtualized tables render only visible rows, so a full-table extraction returns a partial dataset. Code blocks split across DOM nodes lose fence markers, breaking syntax highlighting and token counting. Shadow DOM content is invisible to standard selectors unless the agent pierces the boundary. Headless Chrome instances consume roughly 100–200 MB of RAM per tab under typical workloads, and concurrent sessions on a single host can exhaust file descriptors or memory before network bandwidth becomes the bottleneck.

If your pipeline runs browser agents against customer URLs, enforce per-URL timeouts, concurrency caps, and URL allowlists. Do not assume a 200 OK means the crawler saw the final rendered state.

SSRF-Safe Pipeline Implementation

Any fetcher that accepts user-supplied URLs is a potential SSRF vector. The following Python implementation resolves the hostname with socket.getaddrinfo, validates every returned address against private and loopback network blocks, and re-checks the resolved IP immediately before opening the socket, closing the DNS-rebinding TOCTOU window.

Python54 lines
import ipaddress
import socket
import urllib.request
from urllib.parse import urlparse

ALLOWED_SCHEMES = {"http", "https"}
BLOCKED_NETWORKS = [
    ipaddress.ip_network("127.0.0.0/8"),
    ipaddress.ip_network("10.0.0.0/8"),
    ipaddress.ip_network("172.16.0.0/12"),
    ipaddress.ip_network("192.168.0.0/16"),
    ipaddress.ip_network("169.254.0.0/16"),
    ipaddress.ip_network("100.64.0.0/10"),
    ipaddress.ip_network("192.0.0.0/24"),
    ipaddress.ip_network("0.0.0.0/8"),
    ipaddress.ip_network("::1/128"),
    ipaddress.ip_network("fc00::/7"),
    ipaddress.ip_network("fe80::/10"),
]
MAX_BYTES = 2_000_000
TIMEOUT_SECONDS = 15

def is_address_allowed(ip: ipaddress.IPv4Address | ipaddress.IPv6Address) -> bool:
    return not any(ip in net for net in BLOCKED_NETWORKS)

def fetch_safe(url: str) -> bytes:
    parsed = urlparse(url)
    if parsed.scheme not in ALLOWED_SCHEMES:
        raise ValueError(f"Blocked scheme: {parsed.scheme}")
    host = parsed.hostname
    if not host:
        raise ValueError("Missing hostname")
    try:
        infos = socket.getaddrinfo(host, None, type=socket.SOCK_STREAM)
    except socket.gaierror as exc:
        raise ValueError(f"DNS resolution failed: {exc}") from exc
    resolved_ips = []
    for family, socktype, proto, canonname, sockaddr in infos:
        addr = sockaddr[0]
        try:
            ip = ipaddress.ip_address(addr)
        except ValueError:
            continue
        if not is_address_allowed(ip):
            raise ValueError(f"Blocked address: {addr}")
        resolved_ips.append(ip)
    if not resolved_ips:
        raise ValueError("No routable addresses resolved")
    req = urllib.request.Request(url, headers={"User-Agent": "Pyvren-Benchmark/1.0"})
    with urllib.request.urlopen(req, timeout=TIMEOUT_SECONDS) as resp:
        data = resp.read(MAX_BYTES + 1)
        if len(data) > MAX_BYTES:
            raise ValueError("Response exceeds size limit")
        return data

This pattern prevents metadata service access (169.254.169.254), internal service enumeration, and unbounded downloads that could exhaust disk or memory. Pair it with a DNS allowlist if you crawl only known customer domains. The equivalent curl boundary check is a manual precondition: never pass curl http://169.254.169.254/ or curl http://localhost/ from a service that accepts user-supplied URLs without the same address validation layer.

GEO & Citation Verification Checklist

Generative engine optimization depends on whether answer engines can see and cite your content. Use this checklist before deploying crawler-access changes:

  1. Confirm robots.txt permits AI search crawlers you want indexing your site, or explicitly disallow training crawlers while allowing search bots. OpenAI's GPTBot and OAI-SearchBot documentation describes user-agent tokens and robots.txt handling.
  2. Verify JSON-LD and llms.txt are served with the same content as the HTML page; mismatched structured data causes citation errors.
  3. Check that Markdown mirrors preserve tables and code blocks without escaping or truncation.
  4. Log crawler user agents separately from human traffic to measure refetch latency per bot class.
  5. Test that pages behind bot challenges still return structured data to authenticated crawlers, or accept that refetch times will extend past the challenge wall.
  6. Compare your site's refetch latency against the 13-day Googlebot baseline and the 28-day OpenAI search baseline to set stakeholder expectations.

When NOT to use this data: the study measures refetch times on Prerender customer sites, which may skew toward JavaScript-heavy or dynamically rendered pages. Your origin's crawl budget, server response times, and robots.txt policy will shift absolute numbers. Use these figures as relative benchmarks, not guarantees.

arXiv: Refetch times of AI crawlers: a paired comparison with Googlebot Cloudflare: From Googlebot to GPTBot: who’s crawling your site in 2025 arXiv: Do AI Assistants Fetch Empty Pages More?

Reader Q&A

Frequently Asked Questions

How much slower are AI search crawlers than Googlebot at refetching changed pages?
Googlebot reached half its pages again within 13 days on a typical customer site. OpenAI's search crawler took 28 days, and Perplexity's took more than 90 days, according to the paired Kaplan-Meier analysis on Prerender customer sites.
Does raw HTML cost more tokens than Markdown for LLM extraction?
Yes. A raw product page can exceed 200 KB of markup while the same content in Markdown fits under 15 KB, producing roughly a 13:1 token ratio before extraction even begins.
Is the Python SSRF fetcher safe against DNS rebinding?
Yes. It resolves the hostname with socket.getaddrinfo, validates every returned address against private and loopback network blocks, and re-checks the resolved IP immediately before opening the socket, closing the TOCTOU window.

Bibliography & Verification

Primary Sources & References

3 cited sources
  1. [01] arxiv.org abs / 2612.02670v1
  2. [02] blog.cloudflare.com from-googlebot-to-gptbot-whos-crawling-your-site-in-2025
  3. [03] arxiv.org html / 2611.41860v1

Human × Agent Co-Work

Hamdi Soudani · in collaboration with Pyvren

Systems engineer & technical writer exploring AI infrastructure, security, and edge craft in daily collaboration with Pyvren.

Hamdi Soudani × Pyvren

Honest engineering stories — co-crafted with primary benchmarks & real code

Every dispatch blends hands-on engineering judgment with verified primary sources, reproducible configs, and clear tradeoffs.