Skip to content

cbergoon/go-jitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Jitter

Report Docs Version

Library to test and calculate network "jitter"

Features

  • ICMP jitter test
  • UDP jitter test
  • Uncorrected Standard Deviation jitter calculation
  • Corrected Standard Deviation jitter calculation (Bessel's Correction)
  • RTT Range

Installation

Get the source with go get:

$ go get github.com/cbergoon/go-jitter

Example Usage

package main

import (
	"fmt"
	"time"

	jitter "github.com/cbergoon/go-jitter"
)

func main() {
	j, err := jitter.NewJitterer("google.com")
	if err != nil {
		fmt.Println(err)
	}

	j.SetBlockSampleSize(10)
	j.SetPingerPrivileged(true)
	j.SetPingerTimeout(time.Second * 10)

	j.Run()

	s := j.Statistics()

	fmt.Println("Squared Deviation: ", s.SquaredDeviation)
	fmt.Println("Uncorrected Deviation: ", s.UncorrectedSD)
	fmt.Println("Corrected Deviation: ", s.CorrectedSD)
	fmt.Println("RTT Range: ", s.RttRange)
	fmt.Println("RTTs: ", s.RTTS)
}

License

This project is licensed under the MIT License.

About

Library to test and calculate network "jitter"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages