diff options
| author | ivan-boikov <ik.boikov.public@protonmail.com> | 2023-11-25 15:34:34 +0100 |
|---|---|---|
| committer | ivan-boikov <ik.boikov.public@protonmail.com> | 2023-11-25 15:34:34 +0100 |
| commit | 16aec06eb45aea4e9d5c127daab6ea281d88006d (patch) | |
| tree | 5ac52c36308a3e1cfc468c60d1d6c9aacba11ce0 /scripts/.local/bin/benchshell | |
| parent | 3fccdd9602a31a0722d6dc1dd4a046abf919eee4 (diff) | |
Scripts
Diffstat (limited to 'scripts/.local/bin/benchshell')
| -rwxr-xr-x | scripts/.local/bin/benchshell | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/.local/bin/benchshell b/scripts/.local/bin/benchshell new file mode 100755 index 0000000..697089e --- /dev/null +++ b/scripts/.local/bin/benchshell @@ -0,0 +1,10 @@ +#!/bin/bash + +shell=${1:-sh} +steps=${2:-10000} + +echo "Starting '$shell' $steps times" + +# there's an external 'time' program and there's one in bash +# I won't pull a dep just for that, hence bash in shebang +time for i in $(seq 1 $steps); do $shell -c true; done |
