Giter VIP home page Giter VIP logo

speedtest-webtransport-go's Introduction

speedtest-webtransport-go

Simple speedtest server and client using webtransport over HTTP/3

Go server

./server-speedtest-webtransport-go -h
Usage of ./server-speedtest-webtransport-go:
  -addr string
        address:port to listen on (default ":4443")
  -cert string
        path to the certificate (default "cert.pem")
  -hostname string
        server hostname (default "localhost")
  -key string
        path to the private key (default "key.pem")
  -www string
        HTTP root directory (default "www")

The server handles webtransport sessions on these two endpoints:

  • /ndt/vquic/download: sends data on a single stream during 10 seconds, receives final stats on another one
  • /ndt/vquic/upload: waits for data on a single stream for 10 seconds, sends final stats on another one

A successful execution of a test on an endpoint produces a result in the following format:

{
    "TransferKind": 0, // 0 => Client download, 1 => Client upload
    "BytesReceived": 914620416,
    "StartTime": "2022-12-13T13:20:19.611522162+01:00", // RFC 3339 format
    "ElapsedTime": 10743504  // µs
}

Each test result is printed on stdout.

Web client

www/index.html contains a simple webpage triggering the download and upload tests. It displays the obtained bandwidth. The ?target= search parameter allows setting the speedtest server hostname when it differs from the current hostname.

speedtest-webtransport-go's People

Contributors

francoismichel avatar mpiraux avatar stephen-soltesz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

stephen-soltesz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.