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 | 37 | 4 | 10 | 12.0 | 18.0 | 476,752 | 1,282 | 6 | 406,606 | 5 | 203,303 | osh-native |
parse.configure-cpython | 33 | 3 | 9 | 12.0 | 17.3 | 476,752 | 1,282 | 6 | 406,202 | 5 | 203,101 | osh-native-souffle |
parse.configure-coreutils | 160 | 26 | 74 | 44.5 | 49.7 | 1,653,340 | 4,764 | 12 | 1,025,528 | 6 | 764,307 | osh-native |
parse.configure-coreutils | 145 | 25 | 68 | 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 | 7.9 | 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.6 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,859 | osh-native-souffle |
ex.bashcomp-parse-help | 180 | 0 | 4 | 10.3 | 8.8 | 995,289 | 15,258 | 21 | 50,000 | 0 | 3,902 | osh-native |
ex.bashcomp-parse-help | 172 | 0 | 3 | 10.3 | 8.3 | 995,288 | 15,258 | 21 | 50,000 | 0 | 3,845 | osh-native-souffle |
ex.abuild-print-help | 22 | 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 |
7 | 7 | 0 | 1.6 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
105 | 58 | 53 | 3.3 | zsh | - |
17 | 8 | 8 | 28.2 | bumpleak/osh | mut |
21 | 16 | 4 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 8 | 25.3 | osh-native | mut+alloc |
31 | 19 | 12 | 25.7 | osh-native | mut+alloc+free |
37 | 20 | 16 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 33 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 31.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 42 | 8 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 11 | 25.0 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 24 | 8 | 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 | 14 | 7 | 1.6 | dash | - |
77 | 73 | 4 | 3.1 | bash | - |
379 | 214 | 187 | 3.7 | zsh | - |
49 | 41 | 8 | 83.9 | bumpleak/osh | mut |
61 | 53 | 8 | 86.1 | _bin/cxx-opt+bumproot/osh | mut |
69 | 61 | 8 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 80 | 16 | 73.5 | osh-native | mut+alloc |
105 | 56 | 48 | 75.3 | osh-native | mut+alloc+free |
160 | 136 | 24 | 49.7 | osh-native | mut+alloc+free+gc |
160 | 135 | 24 | 50.5 | osh-native | mut+alloc+free+gc+exit |
139 | 95 | 44 | 98.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 192 | 20 | 67.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 64 | 24 | 73.1 | osh-native-souffle | mut+alloc |
96 | 64 | 32 | 74.9 | osh-native-souffle | mut+alloc+free |
145 | 125 | 20 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
148 | 139 | 8 | 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 | 3.0 | bash | - |
8 | 0 | 7 | 3.4 | zsh | - |
6 | 6 | 0 | 12.2 | bumpleak/osh | mut |
7 | 7 | 0 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.0 | osh-native | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 11 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 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 | 10 | 0 | 1.3 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 15 | 4 | 31.8 | bumpleak/osh | mut |
26 | 25 | 0 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.2 | osh-native | mut+alloc |
37 | 25 | 12 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
27 | 23 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 34 | 19 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 19 | 11 | 25.8 | osh-native-souffle | mut+alloc |
31 | 22 | 9 | 26.1 | osh-native-souffle | mut+alloc+free |
22 | 19 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 14 | 7 | 7.7 | 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 | - |
168 | 120 | 48 | 54.0 | bumpleak/osh | mut |
183 | 107 | 76 | 55.7 | _bin/cxx-opt+bumproot/osh | mut |
194 | 134 | 59 | 55.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 131 | 84 | 47.4 | osh-native | mut+alloc |
221 | 140 | 80 | 49.1 | osh-native | mut+alloc+free |
180 | 136 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 98 | 83 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 163 | 71 | 64.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 142 | 71 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 124 | 80 | 46.9 | osh-native-souffle | mut+alloc |
211 | 135 | 76 | 48.6 | osh-native-souffle | mut+alloc+free |
172 | 100 | 72 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
176 | 124 | 52 | 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 | 5 | 6 | 3.4 | dash | - |
20 | 16 | 4 | 4.5 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
18 | 11 | 7 | 11.4 | bumpleak/osh | mut |
21 | 13 | 9 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
20 | 17 | 4 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 7 | 15 | 11.0 | osh-native | mut+alloc |
22 | 11 | 12 | 11.3 | osh-native | mut+alloc+free |
22 | 22 | 1 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 18 | 5 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 24 | 2 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 6 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 17 | 4 | 10.6 | osh-native-souffle | mut+alloc |
21 | 14 | 7 | 10.9 | osh-native-souffle | mut+alloc+free |
21 | 16 | 6 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 20 | 3 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |