Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ddo/fast

Minimal zero-dependency utility for testing your internet download speed from terminal
https://github.com/ddo/fast

wip

Last synced: about 2 months ago
JSON representation

Minimal zero-dependency utility for testing your internet download speed from terminal

Awesome Lists containing this project

README

        

# fast [![Github All Releases](https://img.shields.io/github/downloads/ddo/fast/total.svg?style=flat-square)]()
> Minimal zero-dependency utility for testing your internet download speed from terminal

*Powered by Fast.com - Netflix*

## Installation

#### Bin

> replace the download link with your os one

> https://github.com/ddo/fast/releases

> below is ubuntu 64 bit example

```sh
curl -L https://github.com/ddo/fast/releases/download/v0.0.4/fast_linux_amd64 -o fast

# or wget
wget https://github.com/ddo/fast/releases/download/v0.0.4/fast_linux_amd64 -O fast

# then chmod
chmod +x fast

# run
./fast
```

#### Docker

> ~10 MB

```sh
docker run --rm ddooo/fast
```

#### Snap

```sh
snap install fast
```

#### Arch Linux (AUR)

```sh
yay -S fast || paru -S fast
```

#### Brew

> *soon*

#### For golang user

> golang user can install from the source code

```sh
go get -u github.com/ddo/fast
```

## Usage
To use simply invoke `fast` with no arguments.
```
$ ./fast
-> 340.37 Mbps
```
By default fast will print status messages as it progresses and will display a pleasing spinning bar. It will also find the unit of measure most appropriate for your use case.

If you don't want the extra output and you only want the end result, you can use the `--silent` option. Additionally you can force the output into the desired units with the `-k`, `-m`, or `-g` flags.

| Flag | Description |
| ------- | ----------- |
| --silent | Hides status information and only displays the end result |
| -k | Forces output into Kbps |
| -m | Forces output into Mbps |
| -g | Forces output into Gbps |

## Build

#### Docker

```sh
# build alpine binary file from root folder
docker run --rm -v "$PWD":/go/src/fast -w /go/src/fast golang:alpine go build -v

mv fast build/docker/
cd build/docker/
docker build -t ddooo/fast .
```

#### Snap

```sh
cd build/snap/
snapcraft
snapcraft push fast_*.snap
snapcraft release fast
```

## Bug

for bug report just open new issue