0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/scripts/benchmark-run.sh

20 lines
326 B
Bash
Executable file

#!/usr/bin/env bash
set -e
FIXTURE=$1
case $FIXTURE in
info)
FIXTURE='npm info jquery'
;;
tarball)
FIXTURE='npm install jquery'
;;
*)
echo "no command found"
return 1;;
esac
hyperfine --ignore-failure --warmup 1 --min-runs=10 --show-output --export-json './hyper-results.json' "$FIXTURE"