0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/scripts/benchmark-run.sh

21 lines
326 B
Bash
Raw Normal View History

#!/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"