1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/scripts/benchmark-run.sh

21 lines
326 B
Bash
Raw Permalink 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"