Created
February 13, 2021 03:58
-
-
Save shinokada/405f6b2c1955723c29d1338940c6d957 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sh-benchmark.zsh | |
Password: | |
bash | ksh | zsh | Test | |
100.0 | 39.7 | 45.2 | Parameter Expansion 1: "$PARAMETER" | |
100.0 | 5.6 | 5.4 | Parameter Expansion 2: $PARAMETER | |
100.0 | 22.0 | 63.7 | Parameter Expansion 3: "${PARAMETER##*/}" (modifier) | |
100.0 | 3.1 | 64.0 | Array Parameter Expansion 1: "${ARRAY[1]}" (one element) | |
100.0 | 5.6 | 4.5 | Array Parameter Expansion 2: "${ARRAY[@]}" (all elements) | |
100.0 | 30.0 | 54.5 | Arithmetic Evaluation 1: let EXPRESSION | |
100.0 | 17.1 | 16.6 | Arithmetic Evaluation 2: ((EXPRESSION)) | |
100.0 | 26.1 | 19.3 | Arithmetic Expansion 1: $((EXPRESSION)) | |
100.0 | 23.3 | 16.5 | Arithmetic Expansion 2: $(($PARAMETER+EXPRESSION)) | |
100.0 | 47.5 | 45.5 | Test 1: [[ EXPRESSION ]] | |
100.0 | 25.6 | 65.5 | Test 2: [ EXPRESSION ] | |
100.0 | 302.9 | 96.7 | Fork | |
100.0 | 3.4 | 50.1 | Iterate Parameters 1; for | |
100.0 | 0.4 | 22.6 | Iterate Parameters 2: while shift |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment