OSH Compute Performance

Running time and memory usage of programs that test data structures (as opposed to I/O).

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

Source code: oils/benchmarks/compute

hello (minimal startup)

host name arg1 arg2 runtime label elapsed ms user ms sys ms max rss MB
no-host _ _ awk 2 0 2 3.5
no-host _ _ dash 1 1 0 1.4
no-host _ _ opt/osh 3 1 2 6.4
no-host _ _ opt/osh-nosouffle 3 1 2 6.9
no-host _ _ bash 1 1 0 2.9
no-host _ _ bumpleak/osh 3 2 1 6.3
no-host _ _ python2 9 7 2 5.9

fibonacci (integers)

host name arg1 arg2 runtime label elapsed ms user ms sys ms max rss MB
no-host 200 44 awk 2 2 0 3.7
no-host 200 44 python2 10 5 6 5.9
no-host 200 44 opt/ysh 19 17 2 8.1
no-host 200 44 dash 19 19 0 1.6
no-host 200 44 opt/ysh-nosouffle 25 22 3 8.5
no-host 200 44 opt/osh 37 34 3 8.1
no-host 200 44 opt/osh-nosouffle 45 44 1 8.7
no-host 200 44 bash 58 57 1 3.1

for loop

host name arg1 arg2 runtime label elapsed ms user ms sys ms max rss MB
no-host 50000 _ awk 4 2 3 3.7
no-host 50000 _ python2 12 10 2 6.0
no-host 50000 _ opt/ysh 36 33 3 8.1
no-host 50000 _ opt/ysh-nosouffle 48 47 1 8.7
no-host 50000 _ dash 85 84 1 1.6
no-host 50000 _ opt/osh 157 152 5 8.3
no-host 50000 _ opt/osh-nosouffle 194 192 2 8.7
no-host 50000 _ bash 232 232 0 3.0

control flow

host name arg1 arg2 runtime label elapsed ms user ms sys ms max rss MB
no-host do_return 200 dash 83 82 1 1.7
no-host do_return 200 bash 340 339 0 3.0
no-host do_return 200 bumpleak/osh 382 351 31 268.4
no-host do_return 200 opt/osh 668 662 6 8.4
no-host do_return 200 opt/osh-nosouffle 718 717 1 8.9

word_freq (associative arrays / hash tables)

host name arg1 arg2 runtime label elapsed ms user ms sys ms max rss MB
no-host 10 configure python2 19 10 9 6.2
no-host 10 configure bumpleak/osh 43 27 18 49.7
no-host 10 configure opt/osh 52 36 18 9.0
no-host 10 configure opt/osh-nosouffle 60 45 17 9.4
no-host 10 configure bash 91 84 9 3.3

parse_help (strings, real code)

host name arg1 runtime label elapsed ms user ms sys ms max rss MB
no-host ls bash 12 9 3 3.4
no-host ls opt/osh 23 14 10 8.9
no-host ls bumpleak/osh 21 14 7 11.7
no-host ls opt/osh-nosouffle 24 16 8 9.2
no-host ls-short bumpleak/osh 8 4 4 8.3
no-host ls-short bash 6 4 2 3.1
no-host ls-short opt/osh 8 4 4 7.1
no-host ls-short opt/osh-nosouffle 8 5 4 7.3
no-host mypy bash 14 13 1 3.4
no-host mypy bumpleak/osh 26 14 12 13.1
no-host mypy opt/osh-nosouffle 29 17 12 9.3
no-host mypy opt/osh 29 19 10 8.9

bubble_sort (array of integers, arrays of strings)

host name arg1 arg2 runtime label elapsed ms user ms sys ms max rss MB
no-host bytes 200 python2 18 11 8 6.0
no-host bytes 200 bumpleak/osh 86 74 13 118.9
no-host bytes 200 opt/osh 108 102 6 7.9
no-host bytes 200 opt/osh-nosouffle 144 138 5 8.5
no-host bytes 200 bash 218 215 3 3.4
no-host int 200 python2 35 27 8 6.0
no-host int 200 bumpleak/osh 83 73 11 96.3
no-host int 200 opt/osh 104 98 6 8.1
no-host int 200 opt/osh-nosouffle 130 122 8 8.5
no-host int 200 bash 192 187 5 3.3

Interpreter and Host Details

shell label shell id
bash bash-36833674
dash dash-cea41b3e
python2 python2-f658ffdc
awk awk-3c1d92a6
opt/osh _bin/cxx-opt/osh-96a8de97
bumpleak/osh _bin/cxx-opt+bumpleak/osh-4483dc07
opt/osh-nosouffle _bin/cxx-opt/mycpp-nosouffle/osh-3cf13a1c
opt/ysh _bin/cxx-opt/ysh-da93bbea
opt/ysh-nosouffle _bin/cxx-opt/mycpp-nosouffle/ysh-4494d5d1
host label host id
no-host no-host-9c670df1

Details

host name task name arg1 arg2 runtime label elapsed ms user ms sys ms max rss MB
no-host bubble_sort bytes 200 python2 18 11 8 6.0
no-host bubble_sort bytes 200 bumpleak/osh 86 74 13 118.9
no-host bubble_sort bytes 200 opt/osh 108 102 6 7.9
no-host bubble_sort bytes 200 opt/osh-nosouffle 144 138 5 8.5
no-host bubble_sort bytes 200 bash 218 215 3 3.4
no-host bubble_sort int 200 python2 35 27 8 6.0
no-host bubble_sort int 200 bumpleak/osh 83 73 11 96.3
no-host bubble_sort int 200 opt/osh 104 98 6 8.1
no-host bubble_sort int 200 opt/osh-nosouffle 130 122 8 8.5
no-host bubble_sort int 200 bash 192 187 5 3.3
no-host control_flow do_return 200 dash 83 82 1 1.7
no-host control_flow do_return 200 bash 340 339 0 3.0
no-host control_flow do_return 200 bumpleak/osh 382 351 31 268.4
no-host control_flow do_return 200 opt/osh 668 662 6 8.4
no-host control_flow do_return 200 opt/osh-nosouffle 718 717 1 8.9
no-host fib 200 44 awk 2 2 0 3.7
no-host fib 200 44 python2 10 5 6 5.9
no-host fib 200 44 opt/ysh 19 17 2 8.1
no-host fib 200 44 dash 19 19 0 1.6
no-host fib 200 44 opt/ysh-nosouffle 25 22 3 8.5
no-host fib 200 44 opt/osh 37 34 3 8.1
no-host fib 200 44 opt/osh-nosouffle 45 44 1 8.7
no-host fib 200 44 bash 58 57 1 3.1
no-host for_loop 50000 _ awk 4 2 3 3.7
no-host for_loop 50000 _ python2 12 10 2 6.0
no-host for_loop 50000 _ opt/ysh 36 33 3 8.1
no-host for_loop 50000 _ opt/ysh-nosouffle 48 47 1 8.7
no-host for_loop 50000 _ dash 85 84 1 1.6
no-host for_loop 50000 _ opt/osh 157 152 5 8.3
no-host for_loop 50000 _ opt/osh-nosouffle 194 192 2 8.7
no-host for_loop 50000 _ bash 232 232 0 3.0
no-host hello _ _ awk 2 0 2 3.5
no-host hello _ _ dash 1 1 0 1.4
no-host hello _ _ opt/osh 3 1 2 6.4
no-host hello _ _ opt/osh-nosouffle 3 1 2 6.9
no-host hello _ _ bash 1 1 0 2.9
no-host hello _ _ bumpleak/osh 3 2 1 6.3
no-host hello _ _ python2 9 7 2 5.9
no-host palindrome bytes _ python2 17 8 10 6.0
no-host palindrome bytes _ bumpleak/osh 134 93 41 169.2
no-host palindrome bytes _ bash 136 124 11 3.3
no-host palindrome bytes _ opt/osh 158 127 31 8.5
no-host palindrome bytes _ opt/osh-nosouffle 182 159 23 9.0
no-host palindrome unicode _ python2 21 12 9 6.0
no-host palindrome unicode _ bumpleak/osh 133 103 31 169.3
no-host palindrome unicode _ bash 133 123 10 3.3
no-host palindrome unicode _ opt/osh 159 139 20 8.5
no-host palindrome unicode _ opt/osh-nosouffle 179 153 26 9.0
no-host parse_help ls _ bash 12 9 3 3.4
no-host parse_help ls _ opt/osh 23 14 10 8.9
no-host parse_help ls _ bumpleak/osh 21 14 7 11.7
no-host parse_help ls _ opt/osh-nosouffle 24 16 8 9.2
no-host parse_help ls-short _ bumpleak/osh 8 4 4 8.3
no-host parse_help ls-short _ bash 6 4 2 3.1
no-host parse_help ls-short _ opt/osh 8 4 4 7.1
no-host parse_help ls-short _ opt/osh-nosouffle 8 5 4 7.3
no-host parse_help mypy _ bash 14 13 1 3.4
no-host parse_help mypy _ bumpleak/osh 26 14 12 13.1
no-host parse_help mypy _ opt/osh-nosouffle 29 17 12 9.3
no-host parse_help mypy _ opt/osh 29 19 10 8.9
no-host word_freq 10 configure python2 19 10 9 6.2
no-host word_freq 10 configure bumpleak/osh 43 27 18 49.7
no-host word_freq 10 configure opt/osh 52 36 18 9.0
no-host word_freq 10 configure opt/osh-nosouffle 60 45 17 9.4
no-host word_freq 10 configure bash 91 84 9 3.3

Stdout Files

host name task name arg1 arg2 runtime label stdout md5sum
no-host hello _ _ bash b1946ac92492d2347c6235b4d2611184
no-host hello _ _ dash b1946ac92492d2347c6235b4d2611184
no-host hello _ _ python2 b1946ac92492d2347c6235b4d2611184
no-host hello _ _ awk b1946ac92492d2347c6235b4d2611184
no-host hello _ _ opt/osh b1946ac92492d2347c6235b4d2611184
no-host hello _ _ bumpleak/osh b1946ac92492d2347c6235b4d2611184
no-host hello _ _ opt/osh-nosouffle b1946ac92492d2347c6235b4d2611184
no-host fib 200 44 bash ddce9d5262dc4820e4e538b12a61f9d4
no-host fib 200 44 dash ddce9d5262dc4820e4e538b12a61f9d4
no-host fib 200 44 python2 ddce9d5262dc4820e4e538b12a61f9d4
no-host fib 200 44 awk ddce9d5262dc4820e4e538b12a61f9d4
no-host fib 200 44 opt/osh ddce9d5262dc4820e4e538b12a61f9d4
no-host fib 200 44 opt/osh-nosouffle ddce9d5262dc4820e4e538b12a61f9d4
no-host fib 200 44 opt/ysh ddce9d5262dc4820e4e538b12a61f9d4
no-host fib 200 44 opt/ysh-nosouffle ddce9d5262dc4820e4e538b12a61f9d4
no-host for_loop 50000 _ bash 85b2d8b92c123a3d0f5b8bce5d79d39b
no-host for_loop 50000 _ dash 85b2d8b92c123a3d0f5b8bce5d79d39b
no-host for_loop 50000 _ python2 85b2d8b92c123a3d0f5b8bce5d79d39b
no-host for_loop 50000 _ awk 85b2d8b92c123a3d0f5b8bce5d79d39b
no-host for_loop 50000 _ opt/osh 85b2d8b92c123a3d0f5b8bce5d79d39b
no-host for_loop 50000 _ opt/osh-nosouffle 85b2d8b92c123a3d0f5b8bce5d79d39b
no-host for_loop 50000 _ opt/ysh 85b2d8b92c123a3d0f5b8bce5d79d39b
no-host for_loop 50000 _ opt/ysh-nosouffle 85b2d8b92c123a3d0f5b8bce5d79d39b
no-host control_flow do_return 200 bash 9f43a6ed22efca2b6ebf407b181af6b0
no-host control_flow do_return 200 dash 9f43a6ed22efca2b6ebf407b181af6b0
no-host control_flow do_return 200 opt/osh 9f43a6ed22efca2b6ebf407b181af6b0
no-host control_flow do_return 200 bumpleak/osh 9f43a6ed22efca2b6ebf407b181af6b0
no-host control_flow do_return 200 opt/osh-nosouffle 9f43a6ed22efca2b6ebf407b181af6b0
no-host word_freq 10 configure bash d0676a76470825458c5679bb4220060f
no-host word_freq 10 configure python2 d0676a76470825458c5679bb4220060f
no-host word_freq 10 configure opt/osh d0676a76470825458c5679bb4220060f
no-host word_freq 10 configure bumpleak/osh d0676a76470825458c5679bb4220060f
no-host word_freq 10 configure opt/osh-nosouffle d0676a76470825458c5679bb4220060f
no-host parse_help ls-short _ bash 1afe5984e4dfa04a5c2084811ccc370b
no-host parse_help ls _ bash 2d4cfb983a4bde9516c34bef6bfe656b
no-host parse_help mypy _ bash 3307e41430578aa391c4dc7b9923b6c1
no-host parse_help ls-short _ opt/osh 1afe5984e4dfa04a5c2084811ccc370b
no-host parse_help ls _ opt/osh 2d4cfb983a4bde9516c34bef6bfe656b
no-host parse_help mypy _ opt/osh 3307e41430578aa391c4dc7b9923b6c1
no-host parse_help ls-short _ bumpleak/osh 1afe5984e4dfa04a5c2084811ccc370b
no-host parse_help ls _ bumpleak/osh 2d4cfb983a4bde9516c34bef6bfe656b
no-host parse_help mypy _ bumpleak/osh 3307e41430578aa391c4dc7b9923b6c1
no-host parse_help ls-short _ opt/osh-nosouffle 1afe5984e4dfa04a5c2084811ccc370b
no-host parse_help ls _ opt/osh-nosouffle 2d4cfb983a4bde9516c34bef6bfe656b
no-host parse_help mypy _ opt/osh-nosouffle 3307e41430578aa391c4dc7b9923b6c1
no-host bubble_sort int 200 bash 304f7b9574921ad21a2bc72f200483d7
no-host bubble_sort bytes 200 bash 85509743b2f5735b32a108dbba770ee4
no-host bubble_sort int 200 python2 304f7b9574921ad21a2bc72f200483d7
no-host bubble_sort bytes 200 python2 85509743b2f5735b32a108dbba770ee4
no-host bubble_sort int 200 opt/osh 304f7b9574921ad21a2bc72f200483d7
no-host bubble_sort bytes 200 opt/osh 85509743b2f5735b32a108dbba770ee4
no-host bubble_sort int 200 bumpleak/osh 304f7b9574921ad21a2bc72f200483d7
no-host bubble_sort bytes 200 bumpleak/osh 85509743b2f5735b32a108dbba770ee4
no-host bubble_sort int 200 opt/osh-nosouffle 304f7b9574921ad21a2bc72f200483d7
no-host bubble_sort bytes 200 opt/osh-nosouffle 85509743b2f5735b32a108dbba770ee4
no-host palindrome unicode _ bash ef69a4a6287351d77e6959beca205e15
no-host palindrome bytes _ bash ef69a4a6287351d77e6959beca205e15
no-host palindrome unicode _ python2 c716827d1eac3e2e0ff0d7d4356e842c
no-host palindrome bytes _ python2 ef69a4a6287351d77e6959beca205e15
no-host palindrome unicode _ opt/osh c716827d1eac3e2e0ff0d7d4356e842c
no-host palindrome bytes _ opt/osh c716827d1eac3e2e0ff0d7d4356e842c
no-host palindrome unicode _ bumpleak/osh c716827d1eac3e2e0ff0d7d4356e842c
no-host palindrome bytes _ bumpleak/osh c716827d1eac3e2e0ff0d7d4356e842c
no-host palindrome unicode _ opt/osh-nosouffle c716827d1eac3e2e0ff0d7d4356e842c
no-host palindrome bytes _ opt/osh-nosouffle c716827d1eac3e2e0ff0d7d4356e842c