Navigate:
LibreSpeed
~$SPEED0.2%

LibreSpeed: Self-hosted internet speed testing

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

LIVE RANKINGS • 10:20 AM • STEADY
OVERALL
#254
90
NETWORKING
#15
1
30 DAY RANKING TREND
ovr#254
·Netwo#15
STARS
14.3K
FORKS
2.4K
7D STARS
+35
7D FORKS
+5
See Repo:
Share:

Learn more about LibreSpeed

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.

LibreSpeed

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'] });


[ EXPLORE MORE ]

Related Repositories

Discover similar tools and frameworks used by developers