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,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.7 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 157 | 28 | 72 | 44.5 | 49.7 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 137 | 24 | 61 | 44.5 | 49.4 | 1,653,338 | 4,764 | 12 | 1,025,396 | 6 | 764,241 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,942 | 180 | 2 | 75,030 | 1 | 37,515 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.1 | 8.0 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.1 | 7.6 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.8 | 8.8 | 1,006,005 | 15,258 | 21 | 50,000 | 0 | 3,919 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 3 | 10.8 | 8.4 | 1,006,004 | 15,258 | 21 | 50,000 | 0 | 3,842 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.2 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 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 | 4 | 2 | 1.4 | dash | - |
23 | 21 | 2 | 3.1 | bash | - |
99 | 53 | 53 | 3.4 | zsh | - |
18 | 14 | 4 | 27.9 | bumpleak/osh | mut |
19 | 15 | 4 | 29.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 3 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 23 | 6 | 25.2 | osh-native | mut+alloc |
31 | 21 | 11 | 25.7 | osh-native | mut+alloc+free |
36 | 29 | 7 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 31 | 6 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 26 | 16 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 38 | 11 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.9 | osh-native-souffle | mut+alloc |
29 | 18 | 11 | 25.2 | osh-native-souffle | mut+alloc+free |
32 | 26 | 6 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
34 | 28 | 6 | 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 | 19 | 2 | 1.4 | dash | - |
77 | 76 | 1 | 3.1 | bash | - |
366 | 191 | 196 | 3.4 | zsh | - |
47 | 38 | 9 | 85.6 | bumpleak/osh | mut |
60 | 51 | 9 | 85.9 | _bin/cxx-opt+bumproot/osh | mut |
71 | 59 | 12 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 61 | 35 | 73.4 | osh-native | mut+alloc |
105 | 69 | 36 | 75.4 | osh-native | mut+alloc+free |
157 | 144 | 13 | 49.7 | osh-native | mut+alloc+free+gc |
163 | 139 | 24 | 50.5 | osh-native | mut+alloc+free+gc+exit |
139 | 94 | 45 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
246 | 220 | 26 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 63 | 24 | 73.0 | osh-native-souffle | mut+alloc |
96 | 56 | 39 | 74.8 | osh-native-souffle | mut+alloc+free |
137 | 109 | 28 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
148 | 123 | 25 | 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 | 1 | 1 | 1.4 | dash | - |
5 | 4 | 1 | 2.9 | bash | - |
7 | 3 | 4 | 3.4 | zsh | - |
6 | 3 | 2 | 12.1 | bumpleak/osh | mut |
7 | 3 | 4 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 3 | 10.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 3 | 6 | 10.0 | osh-native | mut+alloc |
9 | 7 | 2 | 10.0 | osh-native | mut+alloc+free |
9 | 8 | 1 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 11 | 1 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 7 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc |
9 | 6 | 2 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 6 | 3 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 5 | 4 | 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 | 19 | 4 | 3.4 | zsh | - |
18 | 16 | 2 | 31.2 | bumpleak/osh | mut |
27 | 23 | 4 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
28 | 23 | 5 | 31.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 27 | 8 | 26.3 | osh-native | mut+alloc |
37 | 24 | 13 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 36 | 17 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 34 | 2 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 20 | 10 | 26.0 | osh-native-souffle | mut+alloc |
31 | 18 | 13 | 26.1 | osh-native-souffle | mut+alloc+free |
22 | 21 | 1 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 19 | 2 | 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 |
72 | 68 | 4 | 3.0 | bash | - |
166 | 115 | 51 | 55.3 | bumpleak/osh | mut |
180 | 127 | 52 | 56.4 | _bin/cxx-opt+bumproot/osh | mut |
194 | 131 | 63 | 57.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 151 | 62 | 48.0 | osh-native | mut+alloc |
218 | 153 | 65 | 49.8 | osh-native | mut+alloc+free |
181 | 134 | 47 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 139 | 42 | 8.9 | osh-native | mut+alloc+free+gc+exit |
234 | 168 | 66 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 161 | 49 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 116 | 89 | 47.8 | osh-native-souffle | mut+alloc |
211 | 139 | 73 | 49.5 | osh-native-souffle | mut+alloc+free |
174 | 134 | 40 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
174 | 115 | 60 | 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 | 7 | 3 | 3.7 | dash | - |
19 | 8 | 11 | 4.5 | bash | - |
17 | 8 | 10 | 3.5 | zsh | - |
19 | 9 | 11 | 12.6 | bumpleak/osh | mut |
20 | 11 | 10 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 12 | 10 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 9 | 11.0 | osh-native | mut+alloc |
22 | 9 | 14 | 11.3 | osh-native | mut+alloc+free |
23 | 15 | 8 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 13 | 11 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 12 | 13 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 15 | 10 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 7 | 14 | 10.6 | osh-native-souffle | mut+alloc |
21 | 9 | 13 | 10.9 | osh-native-souffle | mut+alloc+free |
21 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 10 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |