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 | 42 | 7 | 15 | 12.0 | 18.0 | 476,747 | 1,282 | 6 | 406,322 | 5 | 203,161 | osh-native |
parse.configure-cpython | 39 | 6 | 14 | 12.0 | 17.7 | 476,747 | 1,282 | 6 | 406,192 | 5 | 203,096 | osh-native-souffle |
parse.configure-coreutils | 184 | 31 | 94 | 44.5 | 49.7 | 1,653,335 | 4,764 | 12 | 1,025,518 | 6 | 764,302 | osh-native |
parse.configure-coreutils | 170 | 31 | 90 | 45.9 | 51.1 | 1,653,334 | 4,764 | 12 | 1,063,848 | 6 | 792,362 | osh-native-souffle |
parse.abuild | 9 | 1 | 2 | 2.6 | 8.7 | 101,938 | 180 | 2 | 75,022 | 1 | 37,511 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,938 | 180 | 3 | 87,084 | 1 | 43,542 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.1 | 8.0 | 579,602 | 22,608 | 12 | 50,000 | 0 | 2,915 | osh-native |
ex.compute-fib | 23 | 0 | 2 | 2.1 | 7.6 | 579,602 | 22,608 | 12 | 50,000 | 0 | 2,853 | osh-native-souffle |
ex.bashcomp-parse-help | 189 | 0 | 5 | 10.3 | 8.7 | 995,284 | 15,258 | 21 | 50,000 | 0 | 3,897 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 5 | 10.3 | 8.3 | 995,283 | 15,258 | 21 | 50,000 | 0 | 3,842 | osh-native-souffle |
ex.abuild-print-help | 24 | 1 | 2 | 2.8 | 9.0 | 116,314 | 277 | 3 | 85,240 | 1 | 42,620 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 116,314 | 277 | 3 | 85,116 | 1 | 42,558 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
24 | 19 | 5 | 3.1 | bash | - |
108 | 52 | 61 | 3.4 | zsh | - |
17 | 12 | 4 | 28.0 | bumpleak/osh | mut |
20 | 12 | 8 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
24 | 23 | 0 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 9 | 25.3 | osh-native | mut+alloc |
33 | 16 | 16 | 25.7 | osh-native | mut+alloc+free |
42 | 34 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
43 | 43 | 0 | 18.1 | osh-native | mut+alloc+free+gc+exit |
45 | 16 | 28 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
64 | 52 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 13 | 13 | 24.9 | osh-native-souffle | mut+alloc |
29 | 14 | 14 | 25.4 | osh-native-souffle | mut+alloc+free |
39 | 31 | 8 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
39 | 25 | 13 | 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 | 21 | 0 | 1.6 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
385 | 226 | 181 | 3.4 | zsh | - |
50 | 42 | 8 | 85.4 | bumpleak/osh | mut |
59 | 48 | 12 | 86.0 | _bin/cxx-opt+bumproot/osh | mut |
71 | 59 | 13 | 87.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 59 | 39 | 73.4 | osh-native | mut+alloc |
107 | 63 | 43 | 75.5 | osh-native | mut+alloc+free |
184 | 168 | 16 | 49.7 | osh-native | mut+alloc+free+gc |
189 | 157 | 32 | 50.5 | osh-native | mut+alloc+free+gc+exit |
140 | 88 | 52 | 99.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
262 | 217 | 44 | 66.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 52 | 36 | 73.3 | osh-native-souffle | mut+alloc |
96 | 76 | 20 | 75.1 | osh-native-souffle | mut+alloc+free |
170 | 145 | 24 | 51.1 | osh-native-souffle | mut+alloc+free+gc |
173 | 149 | 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 | 2 | 0 | 1.3 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 12.0 | bumpleak/osh | mut |
7 | 7 | 0 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
8 | 0 | 8 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 3 | 6 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc+free |
9 | 5 | 5 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
10 | 10 | 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 | 11 | 0 | 1.4 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 12 | 12 | 3.1 | zsh | - |
19 | 15 | 4 | 31.7 | bumpleak/osh | mut |
25 | 18 | 7 | 33.2 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 29 | 7 | 26.5 | osh-native | mut+alloc |
39 | 31 | 8 | 26.7 | osh-native | mut+alloc+free |
29 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
56 | 40 | 16 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 38 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 26 | 4 | 25.8 | osh-native-souffle | mut+alloc |
32 | 28 | 4 | 26.1 | osh-native-souffle | mut+alloc+free |
23 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 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 | 69 | 4 | 3.0 | bash | - |
171 | 103 | 67 | 55.0 | bumpleak/osh | mut |
186 | 121 | 65 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
197 | 144 | 52 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
216 | 144 | 72 | 47.4 | osh-native | mut+alloc |
227 | 154 | 73 | 49.1 | osh-native | mut+alloc+free |
189 | 126 | 63 | 8.7 | osh-native | mut+alloc+free+gc |
192 | 136 | 56 | 8.8 | osh-native | mut+alloc+free+gc+exit |
237 | 160 | 76 | 63.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
233 | 148 | 84 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
210 | 133 | 76 | 46.9 | osh-native-souffle | mut+alloc |
217 | 157 | 60 | 48.7 | osh-native-souffle | mut+alloc+free |
180 | 116 | 64 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
177 | 113 | 64 | 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 | 10 | 0 | 3.4 | dash | - |
20 | 12 | 8 | 4.5 | bash | - |
19 | 13 | 7 | 3.5 | zsh | - |
20 | 18 | 2 | 12.5 | bumpleak/osh | mut |
20 | 8 | 13 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 15 | 6 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 19 | 3 | 11.0 | osh-native | mut+alloc |
23 | 16 | 8 | 11.1 | osh-native | mut+alloc+free |
24 | 18 | 6 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 17 | 8 | 9.2 | osh-native | mut+alloc+free+gc+exit |
26 | 18 | 8 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 23 | 3 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 14 | 8 | 10.5 | osh-native-souffle | mut+alloc |
22 | 11 | 12 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 14 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
36 | 23 | 13 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |