perf

package module
v0.0.0-...-647b72f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 18 Imported by: 0

README

quic-go perf

This is a (partial) implementation of the QUIC Perf Protocol.

Usage

Server
go run cmd/main.go --run-server=true --server-address=0.0.0.0:<server port>

A pprof endpoint is available at port 6060.

Client
go run cmd/main.go --server-address=<server ip>:<server port> --upload-bytes=<N> --download-bytes=<M>

A pprof endpoint is available at port 6061.

Documentation

Index

Constants

View Source
const ALPN = "perf"

Variables

This section is empty.

Functions

func ParseBytes

func ParseBytes(input string) uint64

func RunClient

func RunClient(addr string, uploadBytes, downloadBytes uint64, keyLogFile io.Writer) error

func RunServer

func RunServer(addr string, keyLogFile io.Writer) error

Types

type Result

type Result struct {
	Type          string  `json:"type"`
	TimeSeconds   float64 `json:"timeSeconds"`
	UploadBytes   uint64  `json:"uploadBytes"`
	DownloadBytes uint64  `json:"downloadBytes"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL