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 | 42 | 7 | 15 | 12.0 | 18.0 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 37 | 6 | 13 | 12.0 | 17.6 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 203 | 35 | 112 | 44.5 | 49.8 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 197 | 36 | 115 | 44.5 | 49.4 | 1,653,338 | 4,764 | 12 | 1,025,396 | 6 | 764,241 | osh-native-souffle |
parse.abuild | 10 | 1 | 1 | 2.6 | 8.7 | 101,942 | 180 | 2 | 75,030 | 1 | 37,515 | osh-native |
parse.abuild | 10 | 1 | 2 | 2.4 | 7.9 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.2 | 8.1 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.2 | 7.6 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 187 | 0 | 5 | 10.9 | 8.8 | 1,017,204 | 15,258 | 21 | 50,000 | 0 | 3,900 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 5 | 10.9 | 8.4 | 1,017,203 | 15,258 | 21 | 50,000 | 0 | 3,851 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 116,318 | 277 | 3 | 85,124 | 1 | 42,562 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 5 | 2 | 1.6 | dash | - |
23 | 22 | 1 | 3.0 | bash | - |
112 | 63 | 56 | 3.3 | zsh | - |
18 | 13 | 5 | 29.8 | bumpleak/osh | mut |
21 | 14 | 7 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 30.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 17 | 13 | 25.3 | osh-native | mut+alloc |
32 | 22 | 10 | 25.6 | osh-native | mut+alloc+free |
42 | 36 | 6 | 18.0 | osh-native | mut+alloc+free+gc |
41 | 34 | 7 | 18.1 | osh-native | mut+alloc+free+gc+exit |
45 | 28 | 16 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
62 | 52 | 10 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 18 | 9 | 24.8 | osh-native-souffle | mut+alloc |
30 | 19 | 10 | 25.3 | osh-native-souffle | mut+alloc+free |
37 | 32 | 5 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
39 | 34 | 5 | 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 | 77 | 1 | 3.1 | bash | - |
396 | 223 | 195 | 3.5 | zsh | - |
49 | 41 | 8 | 85.5 | bumpleak/osh | mut |
61 | 52 | 8 | 85.9 | _bin/cxx-opt+bumproot/osh | mut |
71 | 61 | 10 | 85.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 66 | 30 | 73.5 | osh-native | mut+alloc |
113 | 73 | 38 | 75.3 | osh-native | mut+alloc+free |
203 | 171 | 32 | 49.8 | osh-native | mut+alloc+free+gc |
214 | 190 | 24 | 50.3 | osh-native | mut+alloc+free+gc+exit |
138 | 97 | 41 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
265 | 238 | 27 | 66.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 56 | 32 | 73.2 | osh-native-souffle | mut+alloc |
100 | 56 | 44 | 75.0 | osh-native-souffle | mut+alloc+free |
197 | 171 | 26 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
208 | 184 | 24 | 50.2 | 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 | - |
6 | 5 | 1 | 2.9 | bash | - |
8 | 5 | 3 | 3.3 | zsh | - |
6 | 4 | 2 | 11.8 | bumpleak/osh | mut |
8 | 7 | 1 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
8 | 7 | 1 | 11.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 5 | 4 | 10.1 | osh-native | mut+alloc |
9 | 6 | 4 | 10.4 | osh-native | mut+alloc+free |
10 | 10 | 0 | 8.7 | osh-native | mut+alloc+free+gc |
10 | 6 | 4 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 9 | 3 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 5 | 3 | 9.7 | osh-native-souffle | mut+alloc |
9 | 4 | 5 | 10.0 | osh-native-souffle | mut+alloc+free |
10 | 7 | 2 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
9 | 6 | 3 | 8.0 | 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 | 16 | 7 | 3.3 | zsh | - |
19 | 14 | 5 | 32.2 | bumpleak/osh | mut |
26 | 24 | 2 | 32.2 | _bin/cxx-opt+bumproot/osh | mut |
29 | 25 | 4 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 26 | 11 | 26.3 | osh-native | mut+alloc |
39 | 32 | 7 | 26.6 | osh-native | mut+alloc+free |
29 | 27 | 2 | 8.1 | osh-native | mut+alloc+free+gc |
29 | 27 | 2 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 35 | 20 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 32 | 6 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 24 | 7 | 26.1 | osh-native-souffle | mut+alloc |
31 | 22 | 10 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 19 | 3 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 7.7 | 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 |
76 | 73 | 3 | 3.1 | bash | - |
168 | 114 | 55 | 56.9 | bumpleak/osh | mut |
185 | 127 | 58 | 58.0 | _bin/cxx-opt+bumproot/osh | mut |
198 | 137 | 61 | 57.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
220 | 137 | 83 | 48.7 | osh-native | mut+alloc |
228 | 154 | 74 | 50.6 | osh-native | mut+alloc+free |
187 | 143 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
191 | 131 | 60 | 8.9 | osh-native | mut+alloc+free+gc+exit |
238 | 155 | 83 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
237 | 189 | 48 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
212 | 145 | 67 | 48.2 | osh-native-souffle | mut+alloc |
221 | 137 | 83 | 50.2 | osh-native-souffle | mut+alloc+free |
180 | 134 | 46 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
179 | 132 | 47 | 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 | 5 | 5 | 3.5 | dash | - |
20 | 10 | 11 | 4.5 | bash | - |
17 | 8 | 10 | 3.5 | zsh | - |
19 | 6 | 13 | 13.3 | bumpleak/osh | mut |
21 | 8 | 13 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
21 | 10 | 11 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 7 | 15 | 11.0 | osh-native | mut+alloc |
23 | 9 | 14 | 11.0 | osh-native | mut+alloc+free |
23 | 13 | 11 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 13 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
26 | 11 | 15 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 15 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 9 | 12 | 10.4 | osh-native-souffle | mut+alloc |
22 | 7 | 15 | 10.9 | osh-native-souffle | mut+alloc+free |
22 | 9 | 13 | 8.8 | osh-native-souffle | mut+alloc+free+gc |
23 | 11 | 13 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |