#!/usr/local/bin/zsh-0cpmem-5.1.1-dev-0
#!/usr/local/bin/zsh-1cpmem-5.1.1-dev-0

zmodload zsh/zprof

strtest() {
    a=""

    i=5000
    while (( i -- )); do
        b=$a
        a+="$i"
    done
}

strtest
strtest
strtest
strtest
strtest

zprof
