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 | 4 | 10 | 12.0 | 18.1 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.3 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 145 | 23 | 60 | 44.5 | 49.7 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 137 | 25 | 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.4 | 101,942 | 180 | 2 | 75,030 | 1 | 37,515 | osh-native |
parse.abuild | 8 | 1 | 2 | 2.4 | 7.9 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.2 | 8.0 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.2 | 7.6 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 4 | 10.9 | 8.8 | 1,017,204 | 15,258 | 21 | 50,000 | 0 | 3,900 | osh-native |
ex.bashcomp-parse-help | 173 | 0 | 3 | 10.9 | 8.5 | 1,017,203 | 15,258 | 21 | 50,000 | 0 | 3,851 | osh-native-souffle |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 9.0 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 20 | 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 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 2.9 | bash | - |
100 | 57 | 49 | 3.5 | zsh | - |
16 | 13 | 3 | 29.4 | bumpleak/osh | mut |
20 | 17 | 3 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 5 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 20 | 9 | 25.3 | osh-native | mut+alloc |
30 | 17 | 14 | 25.4 | osh-native | mut+alloc+free |
35 | 28 | 7 | 18.1 | osh-native | mut+alloc+free+gc |
36 | 29 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 30 | 12 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 40 | 7 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 14 | 12 | 25.0 | osh-native-souffle | mut+alloc |
29 | 14 | 15 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 27 | 5 | 17.3 | osh-native-souffle | mut+alloc+free+gc |
33 | 25 | 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 | 77 | 1 | 3.1 | bash | - |
362 | 190 | 195 | 3.4 | zsh | - |
50 | 42 | 8 | 84.5 | bumpleak/osh | mut |
59 | 48 | 11 | 84.3 | _bin/cxx-opt+bumproot/osh | mut |
70 | 55 | 14 | 85.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 66 | 30 | 73.7 | osh-native | mut+alloc |
137 | 97 | 41 | 75.2 | osh-native | mut+alloc+free |
145 | 122 | 23 | 49.7 | osh-native | mut+alloc+free+gc |
149 | 127 | 22 | 50.5 | osh-native | mut+alloc+free+gc+exit |
139 | 94 | 44 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
203 | 179 | 24 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 53 | 33 | 73.1 | osh-native-souffle | mut+alloc |
96 | 67 | 29 | 74.8 | osh-native-souffle | mut+alloc+free |
137 | 120 | 17 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
137 | 111 | 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.4 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
7 | 5 | 3 | 3.3 | zsh | - |
6 | 5 | 1 | 11.2 | bumpleak/osh | mut |
6 | 6 | 1 | 11.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 6 | 1 | 11.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 5 | 3 | 10.1 | osh-native | mut+alloc |
8 | 7 | 1 | 10.0 | osh-native | mut+alloc+free |
9 | 5 | 4 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 9 | 3 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 3 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 3 | 5 | 9.8 | osh-native-souffle | mut+alloc |
8 | 5 | 2 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 6 | 3 | 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 | 9 | 1 | 1.4 | dash | - |
28 | 27 | 1 | 3.0 | bash | - |
23 | 18 | 5 | 3.3 | zsh | - |
18 | 14 | 4 | 30.8 | bumpleak/osh | mut |
26 | 23 | 3 | 31.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 23 | 5 | 32.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.2 | osh-native | mut+alloc |
37 | 28 | 9 | 26.5 | 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 | 43 | 10 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
39 | 35 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 20 | 9 | 25.8 | osh-native-souffle | mut+alloc |
30 | 19 | 12 | 26.1 | osh-native-souffle | mut+alloc+free |
21 | 21 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 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 | 64 | 8 | 3.1 | bash | - |
166 | 104 | 63 | 57.4 | bumpleak/osh | mut |
179 | 118 | 61 | 57.0 | _bin/cxx-opt+bumproot/osh | mut |
196 | 130 | 66 | 58.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 135 | 78 | 48.9 | osh-native | mut+alloc |
220 | 146 | 74 | 50.5 | osh-native | mut+alloc+free |
184 | 134 | 49 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 127 | 56 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 161 | 73 | 64.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 159 | 50 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 128 | 75 | 48.1 | osh-native-souffle | mut+alloc |
210 | 151 | 59 | 50.0 | osh-native-souffle | mut+alloc+free |
173 | 122 | 51 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
173 | 116 | 57 | 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.4 | dash | - |
19 | 10 | 10 | 4.3 | bash | - |
17 | 11 | 7 | 3.5 | zsh | - |
17 | 10 | 8 | 11.3 | bumpleak/osh | mut |
20 | 7 | 13 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
20 | 8 | 13 | 13.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 11 | 10 | 11.0 | osh-native | mut+alloc |
21 | 7 | 15 | 11.1 | osh-native | mut+alloc+free |
21 | 13 | 9 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 12 | 11 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 11 | 14 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 14 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 8 | 12 | 10.5 | osh-native-souffle | mut+alloc |
20 | 8 | 13 | 10.9 | osh-native-souffle | mut+alloc+free |
20 | 13 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 13 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |