Memory Management Overhead

Source code: oil/benchmarks/gc.sh

GC Stats

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 16 12.0 18.1 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 34 4 11 12.0 17.6 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 189 31 98 44.5 49.7 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 164 27 85 44.5 49.3 1,653,353 4,764 12 1,025,530 6 764,308 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,957 180 2 75,044 1 37,522 osh-native
parse.abuild 9 1 1 2.6 8.3 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 29 0 2 2.2 8.1 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 22 0 2 2.2 7.7 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 185 0 5 11.1 8.8 1,021,038 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 178 0 4 11.1 8.4 1,021,037 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.2 116,356 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,356 277 3 85,252 1 42,626 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 5 1 1.6 dash -
23 21 2 3.0 bash -
102 52 56 3.4 zsh -
17 13 4 28.2 bumpleak/osh mut
20 15 5 30.3 _bin/cxx-opt+bumproot/osh mut
23 18 5 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 9 25.2 osh-native mut+alloc
32 23 9 25.8 osh-native mut+alloc+free
42 35 7 18.1 osh-native mut+alloc+free+gc
45 42 3 18.1 osh-native mut+alloc+free+gc+exit
43 30 13 32.4 _bin/cxx-opt+nopool/osh mut+alloc
58 52 6 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 17 10 24.9 osh-native-souffle mut+alloc
29 19 10 25.3 osh-native-souffle mut+alloc+free
34 28 6 17.6 osh-native-souffle mut+alloc+free+gc
38 29 9 17.7 osh-native-souffle mut+alloc+free+gc+exit

parse.configure-coreutils

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 75 3 3.1 bash -
371 219 175 3.5 zsh -
48 35 13 85.3 bumpleak/osh mut
61 52 9 86.3 _bin/cxx-opt+bumproot/osh mut
71 67 4 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 66 31 73.6 osh-native mut+alloc
105 67 38 75.2 osh-native mut+alloc+free
189 170 19 49.7 osh-native mut+alloc+free+gc
182 159 23 50.5 osh-native mut+alloc+free+gc+exit
141 99 42 99.0 _bin/cxx-opt+nopool/osh mut+alloc
250 219 31 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 53 36 73.1 osh-native-souffle mut+alloc
98 60 37 75.1 osh-native-souffle mut+alloc+free
164 139 25 49.3 osh-native-souffle mut+alloc+free+gc
168 144 25 50.2 osh-native-souffle mut+alloc+free+gc+exit

parse.abuild

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 1 3.0 bash -
7 5 2 3.1 zsh -
6 5 1 11.0 bumpleak/osh mut
7 5 2 11.5 _bin/cxx-opt+bumproot/osh mut
8 5 3 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 3 10.0 osh-native mut+alloc
9 6 3 10.2 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
10 6 4 8.5 osh-native mut+alloc+free+gc+exit
12 9 3 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 6 2 9.8 osh-native-souffle mut+alloc
8 5 3 9.8 osh-native-souffle mut+alloc+free
9 6 3 8.3 osh-native-souffle mut+alloc+free+gc
9 7 2 8.4 osh-native-souffle mut+alloc+free+gc+exit

ex.compute-fib

A synthetic benchmark for POSIX shell arithmetic.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
10 9 1 1.4 dash -
29 29 0 2.9 bash -
23 17 6 3.3 zsh -
18 15 3 30.8 bumpleak/osh mut
27 23 4 32.5 _bin/cxx-opt+bumproot/osh mut
28 23 5 33.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 27 10 26.2 osh-native mut+alloc
38 25 13 26.6 osh-native mut+alloc+free
29 25 4 8.1 osh-native mut+alloc+free+gc
29 26 3 8.0 osh-native mut+alloc+free+gc+exit
55 39 16 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 32 6 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
32 17 15 26.2 osh-native-souffle mut+alloc+free
22 20 2 7.7 osh-native-souffle mut+alloc+free+gc
22 20 2 7.6 osh-native-souffle mut+alloc+free+gc+exit

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
73 68 5 3.1 bash -
167 105 62 55.8 bumpleak/osh mut
181 121 60 56.1 _bin/cxx-opt+bumproot/osh mut
196 123 73 58.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
219 150 69 48.8 osh-native mut+alloc
226 150 76 50.9 osh-native mut+alloc+free
185 130 55 8.8 osh-native mut+alloc+free+gc
184 131 53 8.9 osh-native mut+alloc+free+gc+exit
236 146 90 64.5 _bin/cxx-opt+nopool/osh mut+alloc
226 174 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 136 69 48.6 osh-native-souffle mut+alloc
214 139 76 50.4 osh-native-souffle mut+alloc+free
178 131 47 8.4 osh-native-souffle mut+alloc+free+gc
176 119 57 8.4 osh-native-souffle mut+alloc+free+gc+exit

ex.abuild-print-help

Running abuild -h from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
10 3 7 3.5 dash -
19 11 9 4.5 bash -
19 8 12 3.5 zsh -
18 9 10 11.3 bumpleak/osh mut
21 6 16 14.8 _bin/cxx-opt+bumproot/osh mut
20 8 13 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 11 11.1 osh-native mut+alloc
22 12 11 11.1 osh-native mut+alloc+free
23 14 9 9.2 osh-native mut+alloc+free+gc
23 10 14 9.2 osh-native mut+alloc+free+gc+exit
25 12 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 15 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 13 10.6 osh-native-souffle mut+alloc
21 7 15 10.7 osh-native-souffle mut+alloc+free
21 14 8 8.7 osh-native-souffle mut+alloc+free+gc
22 12 11 8.7 osh-native-souffle mut+alloc+free+gc+exit