network-quality-test-config

network-quality-test-config is a cursor rule for Cursor from duckduckgo/apple-browsers. It costs 0 tokens per session (770 once invoked), scanned A, original, Apache-2.0.

A test configuration for measuring browser network quality, including response delay, download and upload speed, and DNS lookup performance. It defines the servers, data sizes, samples, and time limits used by the tests.

In plain words
What is it for?
Use it to configure or review browser performance tests for latency, bandwidth, DNS resolution, and measurement accuracy.
Why use it?
It makes network measurements repeatable while limiting how much data the test transfers and how long it runs.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/duckduckgo/apple-browsers/network-quality-test-config
Clone the repo
git clone --depth 1 https://github.com/duckduckgo/apple-browsers

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for network-quality-test-config

README.md
[![agentmods](https://agentmods.dev/badge/rules/duckduckgo/apple-browsers/network-quality-test-config.svg)](https://agentmods.dev/rules/duckduckgo/apple-browsers/network-quality-test-config)
Your own site
<a href="https://agentmods.dev/rules/duckduckgo/apple-browsers/network-quality-test-config"><img src="https://agentmods.dev/badge/rules/duckduckgo/apple-browsers/network-quality-test-config.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 770 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00770
Opus 5 $0.00000 $0.00385
Sonnet 5 $0.00000 $0.00154
Haiku 4.5 $0.00000 $0.00077

Measured 4d ago against content hash b980b8dbd87f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

network-quality-test-config scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/network-quality-test-config.mdc · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NetworkQualityMonitor Test Configuration

Optimized Test Parameters

The NetworkQualityMonitor uses carefully tuned parameters to balance speed and accuracy for browser performance testing.

Test Phases and Data Sizes

HTTP Response Testing (Latency)

  • Samples: 15 per endpoint
  • Endpoints: ~12 globally distributed CDNs and services
  • Methodology: Warm-up phase + interleaved sampling
  • Timeout: 5 seconds
  • Total time: ~3-4 minutes

Bandwidth Testing (Download)

  • File size: 50MB per server (reduced from 100MB)
  • Servers: 3 test servers (CloudFlare, OVH, Hetzner)
  • Runs: 1 per server (reduced from 2)
  • Total download: ~150MB (was 800MB)
  • Timeout: 20 seconds per server
  • Measurement window:
    • At 100 Mbps: ~4 seconds
    • At 25 Mbps: ~16 seconds
    • At 10 Mbps: ~40 seconds

Upload Testing

  • Chunk size: 20MB (reduced from 50MB)
  • Chunks: 2 sequential uploads
  • Total upload: 40MB (was 100MB)
  • Timeout: 25 seconds total
  • Servers: 3 endpoints

DNS Resolution Testing

  • Domains: 11 popular domains
  • Tests: Resolution time and failure rate
  • Timeout: Default system resolver timeout

Performance Optimizations

Why These Sizes?

50MB for Downloads:

  • Large enough to overcome TCP slow start
  • Provides stable measurement window (4-40 seconds)
  • Small enough to complete quickly on slower connections
  • Balances accuracy with user experience

20MB for Uploads:

  • Sufficient to measure upload capacity
  • Most users have asymmetric connections (slower upload)
  • Reduces test time significantly

Total Test Duration

Typical completion times:

  • Fast connection (100+ Mbps): ~2-3 minutes
  • Good connection (25-50 Mbps): ~3-4 minutes
  • Fair connection (10-25 Mbps): ~4-5 minutes
  • Poor connection (<10 Mbps): ~5-7 minutes

Data Usage

Total data transferred:

  • Download: ~150MB
  • Upload: ~40MB
  • Total: ~190MB (reduced from ~900MB)

Configuration Code

TestConfiguration(
    latencyTestURLs: [/* 12 CDN endpoints */],
    bandwidthTestURLs: [
        "https://speed.cloudflare.com/__down?bytes=52428800",  // 50MB
        "https://proof.ovh.net/files/50Mb.dat",                // 50MB
        "https://speed.hetzner.de/50MB.bin"                    // 50MB
    ],
    uploadTestURLs: [/* 3 upload endpoints */],
    dnsTestDomains: [/* 11 popular domains */],
    latencySamplesPerEndpoint: 15,
    bandwidthRunsPerServer: 1,
    uploadChunkSize: 20_971_520,    // 20MB
    uploadChunkCount: 2,
    latencyTestTimeout: 5,
    bandwidthTestTimeout: 20,
    uploadTestTimeout: 25
)

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 100 lines · 0 tokens per session scan A b980b8dbd87f

Subscribe to this mod's changes

network-quality-test-config is a cursor rule published in the GitHub repository duckduckgo/apple-browsers (251 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 770 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.