Skip to content

bottom-software-foundation/bottom-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bottom.go

Docker Hub: orangutan/bottom-go codecov Test Version

Installation

$ go get github.com/bottom-software-foundation/bottom-go/cmd/bottom

Usage

$ echo "Hello, World!" | bottom
💖✨✨,,👉👈💖💖,👉👈💖💖🥺,,,👉👈💖💖🥺,,,👉👈💖💖✨,👉👈✨✨✨✨,,,,👉👈✨✨✨,,👉👈💖✨✨✨🥺,,👉👈💖💖✨,👉👈💖💖✨,,,,👉👈💖💖🥺,,,👉👈💖💖👉👈✨✨✨,,,👉👈✨👉👈

$ echo "💖✨✨,,👉👈💖💖,👉👈💖💖🥺,,,👉👈💖💖🥺,,,👉👈💖💖✨,👉👈✨✨✨✨,,,,👉👈✨✨✨,,👉👈💖✨✨✨🥺,,👉👈💖💖✨,👉👈💖💖✨,,,,👉👈💖💖🥺,,,👉👈💖💖👉👈✨✨✨,,,👉👈✨👉👈" | bottom -d
Hello, World!

$ echo "Hello, World!" > input.txt
$ bottom input.txt | bottom -d
Hello, World!

Benchmarks

You can see current benchmarks in the Test workflow output. Benchmarks for v0.2.1:

BenchmarkEncode-2       	 6773714	       190 ns/op	  63.27 MB/s
BenchmarkEncodeTo-2     	  971070	      1335 ns/op	 244.88 MB/s
BenchmarkDecode-2       	  579741	      2276 ns/op	 143.70 MB/s
BenchmarkDecodeFrom-2   	  477393	      2331 ns/op	 140.28 MB/s