Skip to content

Commit

Permalink
Fix srcenv benchmarks output
Browse files Browse the repository at this point in the history
  • Loading branch information
ins0mniaque committed Dec 2, 2024
1 parent b7d516d commit c4e69da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions srcenv.benchmarks
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,14 @@ if [ "$against" = shells ]; then
zsh=$(command -v zsh)

hyperfine --shell=none "$@" -- ${sh:+"sh srcenv $env_input"} ${ash:+"ash srcenv $env_input"} ${bash:+"bash srcenv $env_input"} ${dash:+"dash srcenv $env_input"} ${ksh:+"ksh srcenv $env_input"} ${mksh:+"mksh srcenv $env_input"} ${zsh:+"zsh srcenv $env_input"}
echo
hyperfine --shell=none "$@" -- ${sh:+"sh srcenv $posix_input"} ${ash:+"ash srcenv $posix_input"} ${bash:+"bash srcenv $posix_input"} ${dash:+"dash srcenv $posix_input"} ${ksh:+"ksh srcenv $posix_input"} ${mksh:+"mksh srcenv $posix_input"} ${zsh:+"zsh srcenv $posix_input"}

exit 0
fi

hyperfine --shell=none "$@" -- "./srcenv $env_input" ${against:+"$against $env_input"}
echo
hyperfine --shell=none "$@" -- "./srcenv $posix_input" ${against:+"$against $posix_input"}

# endregion Benchmarks

0 comments on commit c4e69da

Please sign in to comment.