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 | 18.0 | 476,752 | 1,282 | 6 | 406,606 | 5 | 203,303 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,752 | 1,282 | 6 | 406,202 | 5 | 203,101 | osh-native-souffle |
parse.configure-coreutils | 150 | 24 | 63 | 44.5 | 49.8 | 1,653,340 | 4,764 | 12 | 1,025,528 | 6 | 764,307 | osh-native |
parse.configure-coreutils | 136 | 22 | 60 | 44.5 | 49.4 | 1,653,339 | 4,764 | 12 | 1,025,398 | 6 | 764,242 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,943 | 180 | 2 | 75,032 | 1 | 37,516 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,943 | 180 | 3 | 87,094 | 1 | 43,547 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.1 | 8.0 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,920 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.1 | 7.3 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,859 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 4 | 10.3 | 8.7 | 995,289 | 15,258 | 21 | 50,000 | 0 | 3,902 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 3 | 10.3 | 8.3 | 995,288 | 15,258 | 21 | 50,000 | 0 | 3,845 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.2 | 116,319 | 277 | 3 | 85,250 | 1 | 42,625 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,319 | 277 | 3 | 85,126 | 1 | 42,563 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
105 | 79 | 32 | 3.3 | zsh | - |
16 | 12 | 4 | 29.4 | bumpleak/osh | mut |
19 | 15 | 4 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 7 | 14 | 29.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 8 | 25.2 | osh-native | mut+alloc |
31 | 23 | 8 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 22 | 15 | 18.0 | osh-native | mut+alloc+free+gc+exit |
44 | 27 | 16 | 33.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 44 | 4 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 15 | 11 | 24.9 | osh-native-souffle | mut+alloc |
28 | 24 | 4 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 32 | 0 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 18 | 14 | 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 |
22 | 18 | 4 | 1.4 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
376 | 217 | 180 | 3.7 | zsh | - |
49 | 44 | 4 | 85.6 | bumpleak/osh | mut |
60 | 56 | 4 | 85.9 | _bin/cxx-opt+bumproot/osh | mut |
69 | 49 | 19 | 87.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
107 | 79 | 28 | 73.7 | osh-native | mut+alloc |
107 | 83 | 24 | 75.3 | osh-native | mut+alloc+free |
150 | 134 | 16 | 49.8 | osh-native | mut+alloc+free+gc |
157 | 129 | 27 | 50.3 | osh-native | mut+alloc+free+gc+exit |
140 | 104 | 36 | 98.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 179 | 32 | 67.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 64 | 24 | 73.1 | osh-native-souffle | mut+alloc |
96 | 72 | 24 | 75.0 | osh-native-souffle | mut+alloc+free |
136 | 115 | 20 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
143 | 119 | 25 | 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 | 2 | 0 | 1.4 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 0 | 6 | 11.4 | bumpleak/osh | mut |
7 | 7 | 0 | 10.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc |
9 | 9 | 0 | 10.2 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc+exit |
11 | 4 | 8 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.0 | 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 |
11 | 7 | 4 | 1.4 | dash | - |
28 | 24 | 4 | 3.0 | bash | - |
24 | 12 | 12 | 3.3 | zsh | - |
19 | 18 | 0 | 31.8 | bumpleak/osh | mut |
26 | 22 | 4 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
29 | 25 | 4 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 32 | 4 | 26.5 | osh-native | mut+alloc |
39 | 34 | 4 | 26.6 | osh-native | mut+alloc+free |
28 | 27 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 46 | 8 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
42 | 38 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 17 | 13 | 26.1 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.3 | osh-native-souffle | mut+alloc+free+gc |
21 | 17 | 4 | 7.5 | 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 | 72 | 0 | 3.1 | bash | - |
164 | 115 | 49 | 54.6 | bumpleak/osh | mut |
182 | 118 | 63 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
195 | 115 | 80 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 125 | 85 | 47.3 | osh-native | mut+alloc |
216 | 168 | 48 | 49.1 | osh-native | mut+alloc+free |
181 | 117 | 65 | 8.7 | osh-native | mut+alloc+free+gc |
183 | 119 | 64 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 141 | 92 | 63.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 145 | 64 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 136 | 68 | 47.0 | osh-native-souffle | mut+alloc |
211 | 115 | 96 | 48.6 | osh-native-souffle | mut+alloc+free |
175 | 115 | 59 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
175 | 130 | 45 | 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 |
10 | 9 | 1 | 3.4 | dash | - |
20 | 16 | 4 | 4.3 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
19 | 17 | 3 | 12.4 | bumpleak/osh | mut |
20 | 13 | 8 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
20 | 15 | 5 | 14.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 6 | 11.1 | osh-native | mut+alloc |
22 | 16 | 7 | 11.1 | osh-native | mut+alloc+free |
23 | 22 | 1 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 20 | 3 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 10 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 24 | 1 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 14 | 8 | 10.6 | osh-native-souffle | mut+alloc |
21 | 12 | 9 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 16 | 6 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |