summaryrefslogtreecommitdiffhomepage
path: root/bench/subshell.sh
blob: 827fc2e787b5f4cbb27b7eeea1e82899b9a8d400 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
# A subshell for its own sake, 1500 times: fork, no external command.
i=0
while [ $i -lt 3000 ]; do
    ( : )
    i=$((i + 1))
done
echo "$i"