Skip to content

refactor(bench-ci): Soo, it's bash not zsh #4

refactor(bench-ci): Soo, it's bash not zsh

refactor(bench-ci): Soo, it's bash not zsh #4

Workflow file for this run

name: Bench gowitness with hxn
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-domains:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up environment
run: |
sudo apt update
sudo apt install -y golang
export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo"
export RUSTUP_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/rustup"
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
export PATH="$PATH:$HOME/.local/share/cargo/bin:$HOME/.local/share/go/bin"
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
- name: Install hyperfine
run: cargo install hyperfine
- name: Install gowitness
run: go install github.com/sensepost/gowitness@latest
- name: Get 50 URLs
run: |
curl -qfsSL "https://raw.githubusercontent.com/Azathothas/CertStream-Domains/main/Data/np_ccTLDs/certstream_domains_np_all_24h_httpx.txt" |
awk '/http/ {print $1}' |
sort -u |
head -n 50 > urls.txt
- name: Install hxn
run: cargo install hxn
- name: Bench gowitness with hxn
run: |
hyperfine --warmup 3 'hxn -f urls.txt -t 50 --timeout 500' 'gowitness -F --timeout 500 file urls.txt'