openvpn-benchmark

command module
v0.0.0-...-b564291 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

README

openvpn-benchmark

micro-benchmarks and correctness tests for the openvpn implementation

build

git clone https://github.com/ainghazal/gopenvpn ../
cat <<EOF > go.work
go 1.20

use (
    .
    ../gopenvpn
)
EOF
go get ./...
go build
sudo setcap 'cap_net_admin=ep' ./openvpn-benchmark

run

./openvpn-benchmark -h
Usage of ./openvpn-benchmark:
  -count int
        how many times to run the experiment (default 1)
  -disable-dco
        disable dco module, if loaded (ref only)
  -file string
        file where to append results (default "results.json")
  -flavor string
        what impl to run (minivpn|ref) (default "ref")
  -iface string
        interface where to emulate network conditions (default "eth0")
  -loss int
        setup a specific packet loss % on the interface

reference

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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