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 | 37 | 4 | 11 | 12.0 | 17.8 | 476,767 | 1,282 | 6 | 406,620 | 5 | 203,310 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.8 | 476,767 | 1,282 | 6 | 406,610 | 5 | 203,305 | osh-native-souffle |
parse.configure-coreutils | 161 | 28 | 74 | 44.5 | 49.9 | 1,653,355 | 4,764 | 12 | 1,025,542 | 6 | 764,314 | osh-native |
parse.configure-coreutils | 160 | 28 | 83 | 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 | 8 | 1 | 1 | 2.6 | 8.1 | 101,958 | 180 | 2 | 75,036 | 1 | 37,518 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 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 | 187 | 0 | 4 | 11.1 | 9.0 | 1,021,039 | 15,258 | 22 | 50,000 | 0 | 3,916 | osh-native |
ex.bashcomp-parse-help | 178 | 0 | 4 | 11.1 | 8.4 | 1,021,038 | 15,258 | 22 | 50,000 | 0 | 3,916 | osh-native-souffle |
ex.abuild-print-help | 22 | 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 | 6 | 0 | 1.6 | dash | - |
23 | 21 | 2 | 3.1 | bash | - |
101 | 60 | 49 | 3.4 | zsh | - |
16 | 11 | 5 | 29.8 | bumpleak/osh | mut |
20 | 15 | 5 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 17 | 6 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 18 | 11 | 25.2 | osh-native | mut+alloc |
31 | 24 | 7 | 25.6 | osh-native | mut+alloc+free |
37 | 28 | 9 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 26 | 11 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 26 | 16 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 40 | 11 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 17 | 9 | 24.9 | osh-native-souffle | mut+alloc |
29 | 15 | 13 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 25 | 8 | 17.8 | osh-native-souffle | mut+alloc+free+gc |
34 | 26 | 8 | 17.7 | 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 |
21 | 20 | 1 | 1.6 | dash | - |
78 | 75 | 3 | 3.3 | bash | - |
366 | 201 | 186 | 3.4 | zsh | - |
48 | 38 | 10 | 85.8 | bumpleak/osh | mut |
61 | 54 | 7 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
70 | 58 | 12 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 72 | 24 | 73.7 | osh-native | mut+alloc |
105 | 74 | 31 | 75.4 | osh-native | mut+alloc+free |
161 | 139 | 22 | 49.9 | osh-native | mut+alloc+free+gc |
169 | 141 | 28 | 50.6 | osh-native | mut+alloc+free+gc+exit |
138 | 92 | 46 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
217 | 180 | 37 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 53 | 35 | 73.0 | osh-native-souffle | mut+alloc |
96 | 67 | 29 | 75.0 | osh-native-souffle | mut+alloc+free |
160 | 136 | 24 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
163 | 140 | 23 | 49.9 | 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 | - |
5 | 4 | 2 | 2.9 | bash | - |
7 | 4 | 4 | 3.3 | zsh | - |
6 | 5 | 1 | 11.5 | bumpleak/osh | mut |
7 | 3 | 4 | 11.1 | _bin/cxx-opt+bumproot/osh | mut |
8 | 7 | 1 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 5 | 9.8 | osh-native | mut+alloc |
9 | 4 | 5 | 10.2 | osh-native | mut+alloc+free |
9 | 8 | 1 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 7 | 5 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 7 | 5 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 3 | 9.6 | osh-native-souffle | mut+alloc |
8 | 3 | 5 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 6 | 3 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 5 | 4 | 8.1 | 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 | 3.0 | bash | - |
23 | 14 | 9 | 3.3 | zsh | - |
18 | 15 | 4 | 32.3 | bumpleak/osh | mut |
26 | 23 | 3 | 32.2 | _bin/cxx-opt+bumproot/osh | mut |
29 | 25 | 4 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 24 | 13 | 26.2 | osh-native | mut+alloc |
38 | 25 | 13 | 26.7 | osh-native | mut+alloc+free |
29 | 28 | 1 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 24 | 5 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 33 | 22 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
40 | 35 | 5 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 21 | 9 | 26.0 | osh-native-souffle | mut+alloc |
31 | 21 | 10 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 20 | 2 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 7.5 | 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 | 67 | 6 | 3.0 | bash | - |
166 | 120 | 46 | 56.3 | bumpleak/osh | mut |
184 | 136 | 48 | 57.5 | _bin/cxx-opt+bumproot/osh | mut |
197 | 131 | 66 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 138 | 77 | 48.9 | osh-native | mut+alloc |
220 | 151 | 69 | 50.8 | osh-native | mut+alloc+free |
187 | 126 | 61 | 9.0 | osh-native | mut+alloc+free+gc |
185 | 137 | 48 | 8.8 | osh-native | mut+alloc+free+gc+exit |
237 | 167 | 71 | 64.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
221 | 169 | 51 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
207 | 134 | 73 | 48.5 | osh-native-souffle | mut+alloc |
211 | 142 | 69 | 50.3 | osh-native-souffle | mut+alloc+free |
178 | 124 | 54 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
177 | 136 | 41 | 8.3 | 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 | 4 | 6 | 3.4 | dash | - |
19 | 12 | 7 | 4.5 | bash | - |
17 | 5 | 13 | 3.4 | zsh | - |
19 | 6 | 13 | 11.7 | bumpleak/osh | mut |
20 | 8 | 13 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
21 | 9 | 13 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 10 | 11.1 | osh-native | mut+alloc |
22 | 12 | 11 | 11.3 | osh-native | mut+alloc+free |
22 | 9 | 13 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 15 | 9 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 11 | 13 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 14 | 12 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 12 | 8 | 10.6 | osh-native-souffle | mut+alloc |
21 | 9 | 13 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 10 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 9 | 13 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |