Skip to content

Instantly share code, notes, and snippets.

@brendenhoffman
Created September 20, 2023 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brendenhoffman/ae7dd9c2e694ae09653fcd7317864a1d to your computer and use it in GitHub Desktop.
Save brendenhoffman/ae7dd9c2e694ae09653fcd7317864a1d to your computer and use it in GitHub Desktop.
Benchmark for Pacman gpg speed
#!/bin/sh
files=(/var/cache/pacman/pkg/*.pkg.tar.zst)
i=0
while [ "$i" -lt "$1" ]; do
pkg="${files[i]}"
gpg --home=/etc/pacman.d/gnupg --verify $pkg.sig $pkg
i=$((i + 1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment