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 35 3 9 12.0 17.8 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 32 3 9 12.0 17.7 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 163 26 76 44.5 49.7 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 139 25 62 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.7 101,957 180 2 75,044 1 37,522 osh-native
parse.abuild 8 1 1 2.6 8.1 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 29 0 1 2.2 8.1 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 22 0 1 2.2 7.6 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 11.1 8.9 1,021,036 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 175 0 4 11.1 8.5 1,021,035 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,340 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,340 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 6 0 1.6 dash -
23 21 2 3.1 bash -
101 57 50 3.4 zsh -
16 11 5 28.8 bumpleak/osh mut
19 17 2 30.2 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 9 25.3 osh-native mut+alloc
31 23 8 25.7 osh-native mut+alloc+free
35 29 6 17.8 osh-native mut+alloc+free+gc
36 30 6 18.1 osh-native mut+alloc+free+gc+exit
43 26 17 32.4 _bin/cxx-opt+nopool/osh mut+alloc
50 39 11 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 17 10 24.8 osh-native-souffle mut+alloc
28 20 9 25.4 osh-native-souffle mut+alloc+free
32 23 9 17.7 osh-native-souffle mut+alloc+free+gc
33 29 4 17.6 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 21 0 1.6 dash -
78 78 0 3.3 bash -
373 194 201 3.5 zsh -
48 37 12 85.8 bumpleak/osh mut
60 52 8 85.0 _bin/cxx-opt+bumproot/osh mut
73 64 9 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 69 29 73.5 osh-native mut+alloc
107 70 37 75.3 osh-native mut+alloc+free
163 143 20 49.7 osh-native mut+alloc+free+gc
166 139 27 50.4 osh-native mut+alloc+free+gc+exit
139 94 45 98.9 _bin/cxx-opt+nopool/osh mut+alloc
217 187 30 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 60 29 73.1 osh-native-souffle mut+alloc
97 65 32 75.0 osh-native-souffle mut+alloc+free
139 105 34 49.3 osh-native-souffle mut+alloc+free+gc
147 124 23 50.1 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 2.9 bash -
7 4 3 3.3 zsh -
6 5 1 10.9 bumpleak/osh mut
6 4 2 12.5 _bin/cxx-opt+bumproot/osh mut
7 6 1 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.1 osh-native mut+alloc
9 7 1 10.1 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 8 1 8.7 osh-native mut+alloc+free+gc+exit
12 6 5 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 3 9.7 osh-native-souffle mut+alloc
8 5 3 9.7 osh-native-souffle mut+alloc+free
8 7 1 8.1 osh-native-souffle mut+alloc+free+gc
8 5 3 8.1 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 -
28 27 2 3.0 bash -
23 22 1 3.4 zsh -
18 16 2 31.3 bumpleak/osh mut
26 21 5 32.5 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
40 22 18 26.3 osh-native mut+alloc
41 30 11 26.7 osh-native mut+alloc+free
29 24 5 8.1 osh-native mut+alloc+free+gc
29 26 3 7.9 osh-native mut+alloc+free+gc+exit
58 35 24 36.1 _bin/cxx-opt+nopool/osh mut+alloc
39 37 2 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
32 21 11 26.1 osh-native-souffle mut+alloc
31 21 10 26.2 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 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
75 71 4 3.1 bash -
166 111 55 56.6 bumpleak/osh mut
180 116 64 57.8 _bin/cxx-opt+bumproot/osh mut
196 138 58 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
220 140 77 49.0 osh-native mut+alloc
220 152 69 50.8 osh-native mut+alloc+free
184 140 44 8.9 osh-native mut+alloc+free+gc
183 126 57 8.9 osh-native mut+alloc+free+gc+exit
234 154 80 64.5 _bin/cxx-opt+nopool/osh mut+alloc
210 158 52 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 129 77 48.4 osh-native-souffle mut+alloc
212 150 61 50.3 osh-native-souffle mut+alloc+free
175 131 44 8.5 osh-native-souffle mut+alloc+free+gc
175 118 58 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
9 5 4 3.4 dash -
20 11 9 4.5 bash -
17 6 12 3.5 zsh -
19 8 12 12.3 bumpleak/osh mut
21 7 14 13.5 _bin/cxx-opt+bumproot/osh mut
21 8 13 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 12 11.0 osh-native mut+alloc
22 10 12 11.3 osh-native mut+alloc+free
22 14 9 9.2 osh-native mut+alloc+free+gc
23 9 14 9.2 osh-native mut+alloc+free+gc+exit
24 12 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 14 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 11 10.6 osh-native-souffle mut+alloc
21 10 12 10.7 osh-native-souffle mut+alloc+free
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc
22 13 10 8.7 osh-native-souffle mut+alloc+free+gc+exit