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.6 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 146 25 60 44.5 50.0 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 136 22 59 44.5 49.5 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 28 0 1 2.2 8.0 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 21 0 1 2.2 7.5 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 181 0 4 11.1 8.8 1,021,036 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 173 0 4 11.1 8.4 1,021,035 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.2 116,340 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 20 1 2 2.8 8.4 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.4 dash -
23 22 1 3.0 bash -
100 52 55 3.3 zsh -
15 12 3 28.6 bumpleak/osh mut
19 15 5 29.9 _bin/cxx-opt+bumproot/osh mut
22 18 4 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 11 25.2 osh-native mut+alloc
31 21 10 25.7 osh-native mut+alloc+free
35 31 4 17.8 osh-native mut+alloc+free+gc
35 31 4 18.1 osh-native mut+alloc+free+gc+exit
43 28 15 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 40 7 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 21 5 24.8 osh-native-souffle mut+alloc
29 20 9 25.2 osh-native-souffle mut+alloc+free
32 23 9 17.6 osh-native-souffle mut+alloc+free+gc
33 24 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 -
359 183 195 3.5 zsh -
48 38 9 84.0 bumpleak/osh mut
60 51 9 85.7 _bin/cxx-opt+bumproot/osh mut
70 51 19 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 58 39 73.7 osh-native mut+alloc
105 74 31 75.4 osh-native mut+alloc+free
146 118 28 50.0 osh-native mut+alloc+free+gc
150 133 17 50.6 osh-native mut+alloc+free+gc+exit
140 106 34 98.9 _bin/cxx-opt+nopool/osh mut+alloc
211 185 27 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 57 32 73.3 osh-native-souffle mut+alloc
96 67 29 75.0 osh-native-souffle mut+alloc+free
136 116 20 49.5 osh-native-souffle mut+alloc+free+gc
139 111 28 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.4 dash -
5 4 1 2.8 bash -
7 4 3 3.3 zsh -
6 3 3 12.1 bumpleak/osh mut
7 4 2 11.4 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
9 7 1 10.2 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 5 4 8.4 osh-native mut+alloc+free+gc+exit
12 5 7 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 6 2 9.7 osh-native-souffle mut+alloc
8 4 4 9.6 osh-native-souffle mut+alloc+free
8 3 5 8.1 osh-native-souffle mut+alloc+free+gc
8 7 1 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.3 dash -
28 26 2 3.0 bash -
23 16 7 3.3 zsh -
19 16 3 32.7 bumpleak/osh mut
26 23 3 33.0 _bin/cxx-opt+bumproot/osh mut
28 20 8 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.3 osh-native mut+alloc
37 30 7 26.6 osh-native mut+alloc+free
28 25 3 8.0 osh-native mut+alloc+free+gc
28 28 0 8.1 osh-native mut+alloc+free+gc+exit
53 34 19 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 32 5 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 20 10 26.1 osh-native-souffle mut+alloc
30 21 9 26.2 osh-native-souffle mut+alloc+free
21 18 3 7.5 osh-native-souffle mut+alloc+free+gc
21 19 2 7.7 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
74 67 7 3.1 bash -
167 115 52 57.1 bumpleak/osh mut
181 133 47 56.6 _bin/cxx-opt+bumproot/osh mut
193 131 62 57.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 154 59 49.0 osh-native mut+alloc
219 147 71 50.8 osh-native mut+alloc+free
181 129 52 8.8 osh-native mut+alloc+free+gc
181 124 57 8.9 osh-native mut+alloc+free+gc+exit
235 155 80 64.5 _bin/cxx-opt+nopool/osh mut+alloc
212 148 64 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 138 67 48.6 osh-native-souffle mut+alloc
212 139 73 50.4 osh-native-souffle mut+alloc+free
173 123 50 8.4 osh-native-souffle mut+alloc+free+gc
172 125 47 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 4 6 3.4 dash -
19 11 8 4.5 bash -
17 11 6 3.5 zsh -
18 10 9 11.8 bumpleak/osh mut
19 11 8 12.3 _bin/cxx-opt+bumproot/osh mut
20 7 13 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 12 11.1 osh-native mut+alloc
22 8 15 11.1 osh-native mut+alloc+free
21 12 10 9.2 osh-native mut+alloc+free+gc
22 15 8 9.0 osh-native mut+alloc+free+gc+exit
24 16 9 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 12 12 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 8 12 10.6 osh-native-souffle mut+alloc
20 10 11 10.7 osh-native-souffle mut+alloc+free
20 7 14 8.4 osh-native-souffle mut+alloc+free+gc
21 10 12 8.7 osh-native-souffle mut+alloc+free+gc+exit