Navigate:
All Reposspeedtest
~$SPEEDT0.1%

@cloudflare/speedtest: Internet connection quality measurement

Measure bandwidth, latency, and packet loss via Cloudflare's edge network.

LIVE RANKINGS • 08:16 AM • STEADY
OVERALL
#190
22
DEVELOPER TOOLS
#39
8
30 DAY RANKING TREND
ovr#190
·Devel#39
STARS
14.1K
FORKS
2.4K
DOWNLOADS
7D STARS
+8
7D FORKS
+6
See Repo:
Share:

Learn more about speedtest

This is a JavaScript library for measuring client internet connection quality through network performance testing. It works by executing test requests against Cloudflare's edge infrastructure and extracting timing data via the PerformanceResourceTiming browser API. The module characterizes connections across multiple dimensions: download and upload bandwidth, latency measurements including loaded latency during active transfers, and packet loss detection through TURN server connections. Results are collected by Cloudflare for aggregated network quality insights.


1

Distributed Edge Testing

Measures performance against Cloudflare's global edge network instead of centralized servers. Provides geographically accurate results that reflect actual user experience from the client's location.

2

Loaded Latency Measurement

Captures latency during active download and upload operations, not just idle connections. Reveals real-world performance degradation under network load with configurable measurement intervals.

3

Configurable Test Parameters

Customize test duration, server selection, parallel streams, and measurement protocols. Tailor tests to specific network conditions or compliance requirements beyond default speed checks.


const observer = new PerformanceObserver((list) => {
  list.getEntries().forEach((entry) => {
    const dnsTime = entry.domainLookupEnd - entry.domainLookupStart;
    console.log(`DNS lookup: ${dnsTime}ms`);
  });
});

observer.observe({ entryTypes: ['resource'] });

v5.4.1

Patch release fixing MSSQL database configuration handling; no breaking changes or new requirements reported.

  • Apply MSSQL database settings correctly after upgrading if you use Microsoft SQL Server backend.
  • Release notes do not specify other changes, migrations, or security fixes beyond the MSSQL configuration bug.
v5.4.0

Adds offline ISP detection via bundled ipinfo.io database (default), unified UI with dark mode, and updated docs.

  • Use the new offline ipinfo.io database for ISP detection without an API key; full API remains optional.
  • Adopt the unified UI across standalone and multi-point tests; dark mode is now available.
v5.3.3

Docker image tagging strategy changed; no functional code updates in this release.

  • Pin to `:5.3.3` or `:5.3` for stable deployments; `:latest` now tracks each release instead of master.
  • Note that `:5` label is not available; choose between `:5.3`, `:5.3.3`, `:latest`, or `:master` explicitly.


[ EXPLORE MORE ]

Related Repositories

Discover similar tools and frameworks used by developers