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 | 3 | 9 | 12.0 | 18.0 | 476,762 | 1,282 | 6 | 406,610 | 5 | 203,305 | osh-native |
parse.configure-cpython | 33 | 3 | 9 | 12.0 | 17.4 | 476,762 | 1,282 | 6 | 406,326 | 5 | 203,163 | osh-native-souffle |
parse.configure-coreutils | 142 | 22 | 56 | 44.5 | 49.8 | 1,653,350 | 4,764 | 12 | 1,025,532 | 6 | 764,309 | osh-native |
parse.configure-coreutils | 133 | 22 | 57 | 44.5 | 49.3 | 1,653,349 | 4,764 | 12 | 1,025,522 | 6 | 764,304 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,953 | 180 | 2 | 75,036 | 1 | 37,518 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,953 | 180 | 2 | 75,026 | 1 | 37,513 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 8.1 | 579,717 | 22,608 | 12 | 50,000 | 0 | 2,922 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.2 | 7.6 | 579,717 | 22,608 | 12 | 50,000 | 0 | 2,917 | osh-native-souffle |
ex.bashcomp-parse-help | 186 | 0 | 4 | 11.1 | 8.9 | 1,021,032 | 15,258 | 22 | 50,000 | 0 | 3,911 | osh-native |
ex.bashcomp-parse-help | 178 | 0 | 4 | 11.1 | 8.4 | 1,021,031 | 15,258 | 22 | 50,000 | 0 | 3,916 | osh-native-souffle |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 9.0 | 116,336 | 277 | 3 | 85,254 | 1 | 42,627 | osh-native |
ex.abuild-print-help | 20 | 1 | 2 | 2.8 | 8.5 | 116,336 | 277 | 3 | 85,244 | 1 | 42,622 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 5 | 1 | 1.6 | dash | - |
23 | 22 | 1 | 3.1 | bash | - |
99 | 46 | 60 | 3.4 | zsh | - |
16 | 12 | 4 | 29.8 | bumpleak/osh | mut |
19 | 17 | 2 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 5 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 22 | 7 | 25.2 | osh-native | mut+alloc |
31 | 22 | 9 | 25.8 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 31 | 5 | 18.2 | osh-native | mut+alloc+free+gc+exit |
42 | 27 | 15 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 37 | 10 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
28 | 11 | 17 | 24.8 | osh-native-souffle | mut+alloc |
28 | 19 | 10 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 22 | 11 | 17.4 | 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 | 21 | 0 | 1.6 | dash | - |
78 | 77 | 1 | 3.3 | bash | - |
389 | 219 | 194 | 3.4 | zsh | - |
50 | 40 | 10 | 84.6 | bumpleak/osh | mut |
60 | 48 | 12 | 86.4 | _bin/cxx-opt+bumproot/osh | mut |
71 | 65 | 6 | 86.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 71 | 25 | 73.6 | osh-native | mut+alloc |
105 | 72 | 33 | 75.4 | osh-native | mut+alloc+free |
142 | 120 | 22 | 49.8 | osh-native | mut+alloc+free+gc |
146 | 126 | 20 | 50.4 | osh-native | mut+alloc+free+gc+exit |
141 | 88 | 53 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
201 | 179 | 22 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 59 | 28 | 73.3 | osh-native-souffle | mut+alloc |
95 | 67 | 28 | 75.0 | osh-native-souffle | mut+alloc+free |
133 | 102 | 31 | 49.3 | osh-native-souffle | mut+alloc+free+gc |
143 | 122 | 21 | 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 | 4 | 1 | 2.9 | bash | - |
7 | 4 | 3 | 3.3 | zsh | - |
6 | 3 | 3 | 10.4 | bumpleak/osh | mut |
6 | 3 | 3 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 6 | 1 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 3 | 5 | 10.1 | osh-native | mut+alloc |
8 | 4 | 4 | 10.2 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 5 | 7 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 3 | 5 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 6 | 2 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 7 | 1 | 8.4 | 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 |
11 | 10 | 1 | 1.6 | dash | - |
28 | 27 | 1 | 2.9 | bash | - |
23 | 19 | 4 | 3.3 | zsh | - |
18 | 14 | 4 | 32.0 | bumpleak/osh | mut |
27 | 25 | 2 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
28 | 23 | 5 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 24 | 12 | 26.5 | osh-native | mut+alloc |
37 | 31 | 6 | 26.6 | osh-native | mut+alloc+free |
28 | 26 | 2 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 8.1 | osh-native | mut+alloc+free+gc+exit |
55 | 39 | 15 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 35 | 3 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 17 | 12 | 26.1 | osh-native-souffle | mut+alloc |
31 | 20 | 11 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 21 | 1 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 20 | 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.3 | bash | - |
165 | 116 | 49 | 57.3 | bumpleak/osh | mut |
182 | 132 | 50 | 57.5 | _bin/cxx-opt+bumproot/osh | mut |
194 | 128 | 66 | 58.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 141 | 73 | 49.0 | osh-native | mut+alloc |
220 | 151 | 69 | 50.8 | osh-native | mut+alloc+free |
186 | 133 | 53 | 8.9 | osh-native | mut+alloc+free+gc |
181 | 136 | 44 | 8.7 | osh-native | mut+alloc+free+gc+exit |
237 | 156 | 81 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 160 | 50 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 136 | 68 | 48.6 | osh-native-souffle | mut+alloc |
214 | 149 | 65 | 50.4 | osh-native-souffle | mut+alloc+free |
178 | 125 | 53 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 119 | 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 | 4 | 5 | 3.5 | dash | - |
19 | 14 | 6 | 4.5 | bash | - |
17 | 7 | 11 | 3.4 | zsh | - |
19 | 8 | 11 | 12.5 | bumpleak/osh | mut |
19 | 9 | 10 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
19 | 7 | 13 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 11 | 10 | 11.1 | osh-native | mut+alloc |
22 | 11 | 11 | 11.1 | osh-native | mut+alloc+free |
21 | 12 | 10 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 11 | 11 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 10 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 12 | 12 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 8 | 12 | 10.7 | osh-native-souffle | mut+alloc |
20 | 8 | 13 | 10.7 | osh-native-souffle | mut+alloc+free |
20 | 10 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 11 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |