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 | 36 | 4 | 10 | 12.0 | 17.8 | 476,767 | 1,282 | 6 | 406,620 | 5 | 203,310 | osh-native |
parse.configure-cpython | 38 | 5 | 13 | 12.0 | 17.6 | 476,767 | 1,282 | 6 | 406,610 | 5 | 203,305 | osh-native-souffle |
parse.configure-coreutils | 175 | 26 | 86 | 44.5 | 49.6 | 1,653,355 | 4,764 | 12 | 1,025,542 | 6 | 764,314 | osh-native |
parse.configure-coreutils | 142 | 25 | 68 | 44.5 | 49.4 | 1,653,354 | 4,764 | 12 | 1,025,532 | 6 | 764,309 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,958 | 180 | 2 | 75,046 | 1 | 37,523 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.6 | 8.1 | 101,958 | 180 | 2 | 75,036 | 1 | 37,518 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 8.0 | 579,722 | 22,608 | 12 | 50,000 | 0 | 2,927 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.2 | 7.6 | 579,722 | 22,608 | 12 | 50,000 | 0 | 2,922 | osh-native-souffle |
ex.bashcomp-parse-help | 197 | 0 | 4 | 11.1 | 8.7 | 1,021,039 | 15,258 | 22 | 50,000 | 0 | 3,916 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 11.1 | 8.4 | 1,021,038 | 15,258 | 22 | 50,000 | 0 | 3,916 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,357 | 277 | 3 | 85,264 | 1 | 42,632 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,357 | 277 | 3 | 85,254 | 1 | 42,627 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 4 | 2 | 1.6 | dash | - |
23 | 22 | 1 | 3.0 | bash | - |
101 | 55 | 52 | 3.4 | zsh | - |
16 | 15 | 1 | 28.7 | bumpleak/osh | mut |
19 | 18 | 1 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 22 | 7 | 25.2 | osh-native | mut+alloc |
32 | 17 | 15 | 25.6 | osh-native | mut+alloc+free |
36 | 35 | 1 | 17.8 | osh-native | mut+alloc+free+gc |
40 | 34 | 6 | 18.2 | osh-native | mut+alloc+free+gc+exit |
42 | 29 | 13 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 39 | 10 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 18 | 8 | 24.8 | osh-native-souffle | mut+alloc |
29 | 15 | 14 | 25.4 | osh-native-souffle | mut+alloc+free |
38 | 30 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 25 | 9 | 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 | 22 | 0 | 1.4 | dash | - |
78 | 76 | 2 | 3.1 | bash | - |
364 | 202 | 184 | 3.4 | zsh | - |
49 | 42 | 7 | 85.2 | bumpleak/osh | mut |
61 | 54 | 7 | 84.7 | _bin/cxx-opt+bumproot/osh | mut |
70 | 63 | 7 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 66 | 31 | 73.7 | osh-native | mut+alloc |
107 | 73 | 34 | 75.2 | osh-native | mut+alloc+free |
175 | 153 | 22 | 49.6 | osh-native | mut+alloc+free+gc |
178 | 150 | 27 | 50.5 | osh-native | mut+alloc+free+gc+exit |
137 | 89 | 48 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
226 | 196 | 30 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 53 | 33 | 73.0 | osh-native-souffle | mut+alloc |
96 | 69 | 27 | 74.8 | osh-native-souffle | mut+alloc+free |
142 | 121 | 21 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
155 | 129 | 26 | 50.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 | 1 | 1 | 1.3 | dash | - |
5 | 5 | 0 | 2.9 | bash | - |
7 | 2 | 5 | 3.3 | zsh | - |
6 | 4 | 2 | 10.5 | bumpleak/osh | mut |
7 | 4 | 3 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
7 | 2 | 5 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 6 | 2 | 10.0 | osh-native | mut+alloc |
9 | 6 | 3 | 10.0 | osh-native | mut+alloc+free |
9 | 8 | 1 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.8 | osh-native | mut+alloc+free+gc+exit |
12 | 7 | 5 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 9 | 3 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 5 | 3 | 9.6 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 6 | 3 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 7 | 2 | 8.4 | 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 |
10 | 10 | 0 | 1.4 | dash | - |
29 | 28 | 1 | 2.8 | bash | - |
23 | 18 | 5 | 3.4 | zsh | - |
19 | 15 | 4 | 32.0 | bumpleak/osh | mut |
26 | 21 | 5 | 32.4 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 26 | 10 | 26.5 | osh-native | mut+alloc |
38 | 22 | 16 | 26.7 | osh-native | mut+alloc+free |
28 | 25 | 3 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 25 | 4 | 8.1 | osh-native | mut+alloc+free+gc+exit |
53 | 38 | 16 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 34 | 4 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 18 | 12 | 26.0 | osh-native-souffle | mut+alloc |
31 | 19 | 12 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 20 | 2 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 21 | 1 | 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 |
73 | 69 | 4 | 3.1 | bash | - |
168 | 105 | 63 | 56.7 | bumpleak/osh | mut |
181 | 126 | 55 | 58.3 | _bin/cxx-opt+bumproot/osh | mut |
195 | 133 | 62 | 57.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 152 | 62 | 48.9 | osh-native | mut+alloc |
219 | 153 | 66 | 50.7 | osh-native | mut+alloc+free |
197 | 145 | 51 | 8.7 | osh-native | mut+alloc+free+gc |
187 | 128 | 59 | 8.8 | osh-native | mut+alloc+free+gc+exit |
238 | 167 | 71 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 151 | 60 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 141 | 64 | 48.4 | osh-native-souffle | mut+alloc |
212 | 150 | 62 | 50.4 | osh-native-souffle | mut+alloc+free |
175 | 114 | 62 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
174 | 116 | 58 | 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 |
9 | 6 | 4 | 3.5 | dash | - |
20 | 11 | 9 | 4.5 | bash | - |
17 | 9 | 9 | 3.4 | zsh | - |
18 | 6 | 13 | 11.6 | bumpleak/osh | mut |
19 | 9 | 11 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
21 | 10 | 11 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 10 | 12 | 11.1 | osh-native | mut+alloc |
22 | 8 | 14 | 11.3 | osh-native | mut+alloc+free |
23 | 12 | 11 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 11 | 12 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 14 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 14 | 12 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 10 | 10 | 10.6 | osh-native-souffle | mut+alloc |
22 | 12 | 10 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 9 | 14 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |