Source code: oil/benchmarks/gc.sh
task | elapsed ms | max gc millis | total gc millis | allocated MB | max rss MB | num allocated | num gc points | num gc done | gc threshold | num growths | max survived | shell label |
parse.configure-cpython | 35 | 3 | 9 | 12.1 | 18.0 | 476,709 | 1,282 | 6 | 409,066 | 5 | 204,533 | osh-native |
parse.configure-cpython | 33 | 3 | 9 | 12.0 | 17.4 | 476,709 | 1,282 | 6 | 408,724 | 5 | 204,362 | osh-native-souffle |
parse.configure-coreutils | 143 | 21 | 57 | 44.7 | 49.9 | 1,653,297 | 4,764 | 12 | 1,030,980 | 6 | 769,627 | osh-native |
parse.configure-coreutils | 141 | 24 | 63 | 46.1 | 51.0 | 1,653,296 | 4,764 | 12 | 1,069,090 | 6 | 798,626 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,900 | 180 | 2 | 75,196 | 1 | 37,598 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,900 | 180 | 2 | 75,066 | 1 | 37,533 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 1 | 2.4 | 7.7 | 584,165 | 22,608 | 12 | 50,000 | 0 | 2,876 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.4 | 7.6 | 584,165 | 22,608 | 12 | 50,000 | 0 | 2,813 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.3 | 8.8 | 995,246 | 12,911 | 21 | 50,000 | 0 | 3,866 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 3 | 10.3 | 8.3 | 995,245 | 12,911 | 21 | 50,000 | 0 | 3,796 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,315 | 270 | 3 | 85,432 | 1 | 42,716 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,315 | 270 | 3 | 85,308 | 1 | 42,654 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
106 | 69 | 44 | 3.4 | zsh | - |
16 | 16 | 0 | 28.0 | bumpleak/osh | mut |
20 | 20 | 0 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 29 | 0 | 25.3 | osh-native | mut+alloc |
32 | 24 | 8 | 25.6 | osh-native | mut+alloc+free |
35 | 23 | 12 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 32 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 39 | 4 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 36 | 12 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 11 | 15 | 24.8 | osh-native-souffle | mut+alloc |
29 | 8 | 20 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 18 | 14 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
33 | 29 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc+exit |
Parsing the autoconf-generated configure
script from GNU coreutils.
Note that unlike other shells, osh -n
retains all nodes on purpose. (See the
parser benchmark).
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
22 | 21 | 0 | 1.6 | dash | - |
77 | 73 | 4 | 3.1 | bash | - |
377 | 207 | 192 | 3.5 | zsh | - |
49 | 41 | 7 | 84.2 | bumpleak/osh | mut |
59 | 51 | 8 | 86.3 | _bin/cxx-opt+bumproot/osh | mut |
70 | 66 | 4 | 86.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 74 | 23 | 73.6 | osh-native | mut+alloc |
106 | 55 | 51 | 75.4 | osh-native | mut+alloc+free |
143 | 107 | 36 | 49.9 | osh-native | mut+alloc+free+gc |
152 | 128 | 24 | 50.6 | osh-native | mut+alloc+free+gc+exit |
142 | 97 | 45 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
202 | 174 | 28 | 68.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 39 | 50 | 73.2 | osh-native-souffle | mut+alloc |
96 | 72 | 24 | 75.0 | osh-native-souffle | mut+alloc+free |
141 | 121 | 20 | 51.0 | osh-native-souffle | mut+alloc+free+gc |
152 | 124 | 28 | 52.1 | osh-native-souffle | mut+alloc+free+gc+exit |
Parsing abuild
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
2 | 2 | 0 | 1.4 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 6 | 0 | 11.0 | bumpleak/osh | mut |
7 | 3 | 3 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.2 | osh-native | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 4 | 8.3 | osh-native-souffle | mut+alloc+free+gc+exit |
A synthetic benchmark for POSIX shell arithmetic.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
11 | 11 | 0 | 1.4 | dash | - |
28 | 28 | 0 | 2.9 | bash | - |
24 | 23 | 0 | 3.3 | zsh | - |
19 | 15 | 4 | 31.7 | bumpleak/osh | mut |
25 | 17 | 8 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
27 | 19 | 8 | 32.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.5 | osh-native | mut+alloc |
38 | 25 | 12 | 26.7 | osh-native | mut+alloc+free |
29 | 18 | 11 | 7.7 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 38 | 15 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 17 | 13 | 26.0 | osh-native-souffle | mut+alloc |
32 | 16 | 16 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 17 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 21 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc+exit |
A realistic bash-completion
workload.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
74 | 73 | 0 | 3.1 | bash | - |
168 | 108 | 60 | 53.9 | bumpleak/osh | mut |
181 | 114 | 67 | 55.3 | _bin/cxx-opt+bumproot/osh | mut |
195 | 127 | 68 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 154 | 59 | 47.2 | osh-native | mut+alloc |
218 | 131 | 87 | 48.6 | osh-native | mut+alloc+free |
182 | 118 | 63 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 151 | 32 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 141 | 93 | 62.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
207 | 127 | 79 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 122 | 81 | 46.6 | osh-native-souffle | mut+alloc |
210 | 129 | 80 | 48.2 | osh-native-souffle | mut+alloc+free |
175 | 107 | 67 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
175 | 126 | 49 | 8.4 | osh-native-souffle | mut+alloc+free+gc+exit |
Running abuild -h
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
10 | 10 | 0 | 3.5 | dash | - |
20 | 16 | 4 | 4.3 | bash | - |
17 | 17 | 1 | 3.5 | zsh | - |
18 | 11 | 7 | 13.2 | bumpleak/osh | mut |
19 | 10 | 10 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 11 | 12 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 13 | 8 | 11.0 | osh-native | mut+alloc |
22 | 11 | 12 | 11.1 | osh-native | mut+alloc+free |
22 | 19 | 4 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 13 | 10 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 19 | 6 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 8 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 14 | 6 | 10.6 | osh-native-souffle | mut+alloc |
21 | 15 | 6 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 11 | 10 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 15 | 7 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |