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 18.0 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 145 22 59 44.5 50.0 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 136 24 60 44.5 49.4 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 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 7.9 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 182 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.3 1,021,035 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,340 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 20 1 2 2.8 8.5 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 5 1 1.6 dash -
24 23 1 3.0 bash -
101 53 55 3.4 zsh -
16 13 3 29.4 bumpleak/osh mut
20 17 3 29.1 _bin/cxx-opt+bumproot/osh mut
23 15 8 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 20 10 25.2 osh-native mut+alloc
31 19 12 25.6 osh-native mut+alloc+free
35 31 4 18.0 osh-native mut+alloc+free+gc
36 28 8 18.0 osh-native mut+alloc+free+gc+exit
43 34 9 32.3 _bin/cxx-opt+nopool/osh mut+alloc
48 43 5 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 12 24.8 osh-native-souffle mut+alloc
29 16 13 25.3 osh-native-souffle mut+alloc+free
32 30 2 17.6 osh-native-souffle mut+alloc+free+gc
33 29 4 17.8 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 77 1 3.3 bash -
364 175 210 3.5 zsh -
47 41 6 83.9 bumpleak/osh mut
60 57 3 84.6 _bin/cxx-opt+bumproot/osh mut
70 52 18 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 69 27 73.7 osh-native mut+alloc
105 79 26 75.2 osh-native mut+alloc+free
145 124 21 50.0 osh-native mut+alloc+free+gc
150 126 24 50.4 osh-native mut+alloc+free+gc+exit
140 94 46 98.8 _bin/cxx-opt+nopool/osh mut+alloc
211 177 34 66.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 60 27 73.0 osh-native-souffle mut+alloc
96 61 35 75.0 osh-native-souffle mut+alloc+free
136 114 22 49.4 osh-native-souffle mut+alloc+free+gc
141 120 21 49.9 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 2 0 1.4 dash -
5 4 2 2.9 bash -
7 2 5 3.3 zsh -
6 3 3 11.7 bumpleak/osh mut
6 5 1 12.8 _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 5 4 10.1 osh-native mut+alloc+free
9 5 4 8.5 osh-native mut+alloc+free+gc
9 5 4 8.7 osh-native mut+alloc+free+gc+exit
12 6 5 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.7 osh-native-souffle mut+alloc
8 4 4 10.0 osh-native-souffle mut+alloc+free
8 6 2 8.1 osh-native-souffle mut+alloc+free+gc
8 6 2 8.3 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 10 0 1.4 dash -
28 28 0 3.0 bash -
23 15 8 3.1 zsh -
18 13 5 31.9 bumpleak/osh mut
26 23 3 32.5 _bin/cxx-opt+bumproot/osh mut
27 24 3 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 10 26.5 osh-native mut+alloc
38 26 12 26.6 osh-native mut+alloc+free
28 26 2 7.9 osh-native mut+alloc+free+gc
28 25 3 8.1 osh-native mut+alloc+free+gc+exit
53 41 12 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 23 7 26.0 osh-native-souffle mut+alloc
31 20 11 26.3 osh-native-souffle mut+alloc+free
22 21 1 7.6 osh-native-souffle mut+alloc+free+gc
22 19 3 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 71 3 3.1 bash -
166 110 56 55.9 bumpleak/osh mut
180 123 57 56.3 _bin/cxx-opt+bumproot/osh mut
194 119 75 58.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 129 83 49.0 osh-native mut+alloc
222 145 77 50.8 osh-native mut+alloc+free
182 122 60 8.8 osh-native mut+alloc+free+gc
183 126 57 8.9 osh-native mut+alloc+free+gc+exit
233 147 86 64.5 _bin/cxx-opt+nopool/osh mut+alloc
211 168 43 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 130 72 48.6 osh-native-souffle mut+alloc
214 144 70 50.4 osh-native-souffle mut+alloc+free
173 118 55 8.3 osh-native-souffle mut+alloc+free+gc
173 130 43 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 6 3 3.5 dash -
19 9 11 4.5 bash -
17 7 10 3.5 zsh -
19 9 11 12.3 bumpleak/osh mut
19 9 10 12.1 _bin/cxx-opt+bumproot/osh mut
20 9 11 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 10 11.0 osh-native mut+alloc
22 11 11 11.4 osh-native mut+alloc+free
22 7 15 9.0 osh-native mut+alloc+free+gc
22 9 13 9.0 osh-native mut+alloc+free+gc+exit
24 10 15 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 7 13 10.5 osh-native-souffle mut+alloc
21 14 8 10.9 osh-native-souffle mut+alloc+free
20 13 8 8.5 osh-native-souffle mut+alloc+free+gc
21 10 12 8.5 osh-native-souffle mut+alloc+free+gc+exit