krampus

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 8 Imported by: 0

README

👹 krampus

Command-line tool to kill one or more processes by its port number.

License Version Build

Installation

Homebrew
$ brew install idleberg/asahi/krampus --build-from-source
Go
$ go install github.com/idleberg/krampus@latest

⚠ Make sure that your Go binaries path (usually $HOME/go/bin or %USERPROFILE%\go\bin on Windows) is in your system's PATH.

Usage

# Let's kill your web-server
$ krampus 80 443

Benchmark

Benchmark 1: node-krampus 3333
  Time (mean ± σ):     869.7 ms ±   6.0 ms    [User: 775.7 ms, System: 158.6 ms]
  Range (min … max):   861.7 ms … 884.3 ms    10 runs
 
Benchmark 2: go-krampus 3333
  Time (mean ± σ):      61.5 ms ±   2.5 ms    [User: 37.8 ms, System: 19.5 ms]
  Range (min … max):    58.7 ms …  73.3 ms    43 runs
 
Summary
  go-krampus 3333 ran
   14.15 ± 0.58 times faster than node-krampus 3333

Credit

Name and idea inspired by Mario Nebl's krampus for NodeJS.

License

This work is licensed under The MIT License.

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