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 | 17.8 | 476,760 | 1,282 | 6 | 406,606 | 5 | 203,303 | osh-native |
parse.configure-cpython | 33 | 4 | 9 | 12.0 | 17.4 | 476,760 | 1,282 | 6 | 406,322 | 5 | 203,161 | osh-native-souffle |
parse.configure-coreutils | 164 | 27 | 77 | 44.5 | 50.0 | 1,653,348 | 4,764 | 12 | 1,025,528 | 6 | 764,307 | osh-native |
parse.configure-coreutils | 152 | 25 | 73 | 44.5 | 49.5 | 1,653,347 | 4,764 | 12 | 1,025,518 | 6 | 764,302 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.8 | 101,951 | 180 | 2 | 75,032 | 1 | 37,516 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,951 | 180 | 2 | 75,022 | 1 | 37,511 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 8.0 | 579,715 | 22,608 | 12 | 50,000 | 0 | 2,920 | osh-native |
ex.compute-fib | 23 | 0 | 2 | 2.2 | 7.5 | 579,715 | 22,608 | 12 | 50,000 | 0 | 2,915 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 4 | 11.1 | 8.9 | 1,021,030 | 15,258 | 22 | 50,000 | 0 | 3,909 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 4 | 11.1 | 8.4 | 1,021,029 | 15,258 | 22 | 50,000 | 0 | 3,914 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,334 | 277 | 3 | 85,250 | 1 | 42,625 | osh-native |
ex.abuild-print-help | 20 | 1 | 2 | 2.8 | 8.7 | 116,334 | 277 | 3 | 85,240 | 1 | 42,620 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 22 | 1 | 3.1 | bash | - |
101 | 55 | 52 | 3.5 | zsh | - |
16 | 12 | 4 | 29.2 | bumpleak/osh | mut |
19 | 13 | 7 | 30.1 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 18 | 12 | 25.3 | osh-native | mut+alloc |
32 | 23 | 9 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
41 | 31 | 10 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 26 | 16 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 36 | 13 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 18 | 9 | 24.8 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
33 | 31 | 2 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
33 | 26 | 7 | 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.3 | bash | - |
365 | 188 | 197 | 3.7 | zsh | - |
50 | 38 | 12 | 85.0 | bumpleak/osh | mut |
58 | 52 | 6 | 85.6 | _bin/cxx-opt+bumproot/osh | mut |
69 | 58 | 11 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 70 | 27 | 73.5 | osh-native | mut+alloc |
104 | 70 | 34 | 75.5 | osh-native | mut+alloc+free |
164 | 134 | 30 | 50.0 | osh-native | mut+alloc+free+gc |
161 | 135 | 27 | 50.6 | osh-native | mut+alloc+free+gc+exit |
135 | 97 | 38 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 183 | 28 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 65 | 23 | 73.3 | osh-native-souffle | mut+alloc |
95 | 70 | 25 | 74.8 | osh-native-souffle | mut+alloc+free |
152 | 128 | 24 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
152 | 125 | 27 | 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.3 | dash | - |
5 | 4 | 2 | 2.9 | bash | - |
7 | 1 | 6 | 3.3 | zsh | - |
6 | 3 | 2 | 10.6 | bumpleak/osh | mut |
7 | 5 | 2 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 4 | 11.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 6 | 2 | 9.8 | osh-native | mut+alloc |
9 | 6 | 3 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 7 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 10 | 2 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 5 | 3 | 9.6 | osh-native-souffle | mut+alloc |
8 | 7 | 2 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 5 | 3 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 8.1 | 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.4 | dash | - |
28 | 26 | 2 | 2.8 | bash | - |
23 | 18 | 5 | 3.3 | zsh | - |
19 | 13 | 6 | 31.5 | bumpleak/osh | mut |
25 | 22 | 4 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 25 | 12 | 26.3 | osh-native | mut+alloc |
38 | 27 | 11 | 26.6 | osh-native | mut+alloc+free |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 23 | 6 | 8.1 | osh-native | mut+alloc+free+gc+exit |
53 | 35 | 17 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 19 | 10 | 25.7 | osh-native-souffle | mut+alloc |
30 | 20 | 10 | 26.2 | osh-native-souffle | mut+alloc+free |
23 | 20 | 3 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 21 | 1 | 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 | 70 | 2 | 3.1 | bash | - |
168 | 110 | 58 | 57.2 | bumpleak/osh | mut |
183 | 130 | 53 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
198 | 145 | 53 | 57.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 143 | 69 | 48.8 | osh-native | mut+alloc |
221 | 142 | 78 | 50.8 | osh-native | mut+alloc+free |
183 | 129 | 54 | 8.9 | osh-native | mut+alloc+free+gc |
183 | 131 | 52 | 8.9 | osh-native | mut+alloc+free+gc+exit |
232 | 153 | 78 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 160 | 51 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 127 | 76 | 48.3 | osh-native-souffle | mut+alloc |
213 | 140 | 73 | 50.2 | osh-native-souffle | mut+alloc+free |
175 | 117 | 58 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
174 | 122 | 52 | 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 | 3 | 6 | 3.4 | dash | - |
19 | 12 | 8 | 4.3 | bash | - |
17 | 6 | 11 | 3.5 | zsh | - |
19 | 7 | 13 | 12.2 | bumpleak/osh | mut |
19 | 9 | 10 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
19 | 11 | 9 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 9 | 12 | 11.1 | osh-native | mut+alloc |
22 | 8 | 14 | 11.3 | osh-native | mut+alloc+free |
22 | 9 | 13 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 17 | 7 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 12 | 13 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 14 | 12 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 11 | 9 | 10.5 | osh-native-souffle | mut+alloc |
21 | 11 | 11 | 10.9 | osh-native-souffle | mut+alloc+free |
20 | 10 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 8 | 14 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |