跳到正文

Cloudflare Speedtest

活跃
cloudflare/speedtest

speed.cloudflare.com 背后的 JavaScript 测速引擎:在任意网页中针对 Cloudflare 边缘网络测量下载/上传带宽、延迟和丢包。

在 GitHub 查看
星标
778
Fork
89
关注
778
未关闭 Issue
22

该介绍目前仅提供英文版本。

Overview

@cloudflare/speedtest is a JavaScript module that measures the quality of a client’s internet connection. It is the measurement engine behind Cloudflare’s own speed test at speed.cloudflare.com.

How it works

The module sends test requests to the Cloudflare edge network and reads timing data from the browser’s PerformanceResourceTiming API. It characterizes a connection by:

  • Download and upload bandwidth
  • Latency
  • Packet loss

Install

npm install @cloudflare/speedtest

Note that Cloudflare collects the measurement results when a test completes; see the README for details and how results are used.

按共同分类和标签排序的同类开源项目。

全部网络项目 →