mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
20 lines
326 B
Bash
Executable file
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"
|
|
|