Command-line tool to kill one or more processes by its port number.
$ brew install idleberg/asahi/krampus --build-from-source
$ go install github.com/idleberg/krampus@latest
$HOME/go/bin
or %USERPROFILE%\go\bin
on Windows) is in your system's PATH
.
You can download the latest release from GitHub and install it manually.
# Let's kill your web-server
$ krampus 80 443
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
Name and idea inspired by Mario Nebl's krampus for NodeJS.
This work is licensed under The MIT License.