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 | 34 | 3 | 9 | 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.6 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 143 | 22 | 57 | 44.5 | 49.7 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 135 | 23 | 58 | 44.5 | 49.3 | 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 | 7.9 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 7.9 | 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 | 182 | 0 | 3 | 10.9 | 8.7 | 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 | 22 | 1 | 2 | 2.8 | 9.2 | 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 | 5 | 1 | 1.4 | dash | - |
23 | 22 | 1 | 3.0 | bash | - |
100 | 52 | 55 | 3.4 | zsh | - |
16 | 13 | 3 | 29.1 | bumpleak/osh | mut |
19 | 15 | 4 | 28.6 | _bin/cxx-opt+bumproot/osh | mut |
23 | 18 | 5 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 18 | 12 | 25.0 | osh-native | mut+alloc |
31 | 27 | 4 | 25.6 | osh-native | mut+alloc+free |
34 | 31 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
35 | 32 | 3 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 24 | 18 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 38 | 9 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 16 | 10 | 24.9 | osh-native-souffle | mut+alloc |
28 | 20 | 8 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 25 | 7 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 30 | 3 | 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.4 | dash | - |
78 | 77 | 1 | 3.3 | bash | - |
363 | 197 | 187 | 3.5 | zsh | - |
49 | 42 | 7 | 85.8 | bumpleak/osh | mut |
60 | 50 | 10 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
69 | 58 | 11 | 85.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 68 | 29 | 73.7 | osh-native | mut+alloc |
104 | 77 | 26 | 75.2 | osh-native | mut+alloc+free |
143 | 122 | 21 | 49.7 | osh-native | mut+alloc+free+gc |
150 | 128 | 22 | 50.3 | osh-native | mut+alloc+free+gc+exit |
136 | 95 | 41 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
200 | 169 | 31 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 52 | 36 | 73.1 | osh-native-souffle | mut+alloc |
96 | 61 | 34 | 75.0 | osh-native-souffle | mut+alloc+free |
135 | 111 | 24 | 49.3 | osh-native-souffle | mut+alloc+free+gc |
138 | 113 | 24 | 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 | - |
5 | 5 | 0 | 2.9 | bash | - |
7 | 3 | 4 | 3.3 | zsh | - |
6 | 4 | 2 | 11.3 | bumpleak/osh | mut |
6 | 5 | 1 | 11.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 3 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 6 | 2 | 9.8 | osh-native | mut+alloc |
9 | 6 | 2 | 10.1 | osh-native | mut+alloc+free |
9 | 7 | 2 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 7 | 5 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 9 | 3 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 5 | 3 | 9.7 | osh-native-souffle | mut+alloc |
8 | 6 | 2 | 9.6 | osh-native-souffle | mut+alloc+free |
9 | 6 | 3 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 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.6 | dash | - |
28 | 26 | 2 | 3.0 | bash | - |
23 | 17 | 6 | 3.4 | zsh | - |
18 | 14 | 5 | 31.6 | bumpleak/osh | mut |
25 | 21 | 4 | 31.8 | _bin/cxx-opt+bumproot/osh | mut |
28 | 26 | 2 | 32.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 27 | 9 | 26.2 | osh-native | mut+alloc |
37 | 29 | 8 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 7.9 | osh-native | mut+alloc+free+gc+exit |
52 | 37 | 15 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 33 | 5 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 21 | 9 | 26.1 | osh-native-souffle | mut+alloc |
30 | 19 | 12 | 26.1 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 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 |
73 | 70 | 3 | 3.1 | bash | - |
164 | 114 | 50 | 56.7 | bumpleak/osh | mut |
181 | 127 | 54 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
194 | 135 | 59 | 57.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 151 | 62 | 48.6 | osh-native | mut+alloc |
222 | 146 | 76 | 50.5 | osh-native | mut+alloc+free |
182 | 133 | 49 | 8.7 | osh-native | mut+alloc+free+gc |
183 | 135 | 48 | 8.9 | osh-native | mut+alloc+free+gc+exit |
233 | 164 | 69 | 64.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 168 | 46 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
202 | 128 | 74 | 48.3 | osh-native-souffle | mut+alloc |
206 | 137 | 69 | 50.2 | osh-native-souffle | mut+alloc+free |
173 | 124 | 49 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
173 | 116 | 56 | 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 | 5 | 4 | 3.4 | dash | - |
19 | 10 | 10 | 4.2 | bash | - |
17 | 5 | 12 | 3.4 | zsh | - |
17 | 7 | 11 | 11.5 | bumpleak/osh | mut |
19 | 11 | 8 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 6 | 15 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 10 | 11 | 11.1 | osh-native | mut+alloc |
22 | 12 | 10 | 11.1 | osh-native | mut+alloc+free |
22 | 13 | 10 | 9.2 | osh-native | mut+alloc+free+gc |
22 | 12 | 11 | 9.2 | osh-native | mut+alloc+free+gc+exit |
24 | 11 | 13 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 14 | 10 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 8 | 12 | 10.6 | osh-native-souffle | mut+alloc |
20 | 11 | 9 | 10.9 | osh-native-souffle | mut+alloc+free |
20 | 8 | 13 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 11 | 10 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |