Total Pageviews

Tuesday 27 November 2018

一个测速网站的源码-Speedtest

Self-hosted HTML5 Speedtest. Easy setup, examples, configurable, responsive and mobile friendly. Supports PHP, Node, and more.

No Flash, No Java, No Websocket, No Bullshit.
This is a very lightweight Speedtest implemented in Javascript, using XMLHttpRequest and Web Workers.

Try it

Compatibility

Only modern browsers are supported (IE11, latest Edge, latest Chrome, latest Firefox, latest Safari)

Features

  • Download
  • Upload
  • Ping
  • Jitter
  • IP Address
  • Telemetry (optional)
  • Results sharing (optional)
Screenshot

Requirements

  • A reasonably fast web server with PHP (see doc.md for details and use without PHP)
  • Your server must accept large POST requests (up to 20 Megabytes), otherwise the upload test will fail
  • It's also better if your server does not use compression, but it's not mandatory

Quick installation videos

How to use in your site

Multiple test servers

Please see the mpot branch

Docker

Please see the docker branch

Node.js backend

A Node.js implementation is available in the node branch, maintained by dunklesToast.
from https://github.com/adolfintel/speedtest

No comments:

Post a Comment