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 36 4 9 12.0 18.1 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 34 4 10 12.0 17.4 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 161 25 74 44.5 49.6 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 157 26 79 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.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 8.0 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 22 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.9 1,021,036 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 175 0 4 11.1 8.4 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.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 6 0 1.6 dash -
23 21 2 3.1 bash -
101 51 57 3.3 zsh -
16 11 6 29.4 bumpleak/osh mut
20 15 5 28.5 _bin/cxx-opt+bumproot/osh mut
23 16 7 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
31 26 5 25.7 osh-native mut+alloc+free
36 26 9 18.1 osh-native mut+alloc+free+gc
37 29 8 18.2 osh-native mut+alloc+free+gc+exit
42 31 11 32.5 _bin/cxx-opt+nopool/osh mut+alloc
49 39 10 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 16 11 24.9 osh-native-souffle mut+alloc
29 20 9 25.4 osh-native-souffle mut+alloc+free
34 22 12 17.4 osh-native-souffle mut+alloc+free+gc
33 27 6 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.4 dash -
79 77 2 3.1 bash -
364 210 176 3.4 zsh -
48 37 11 84.4 bumpleak/osh mut
60 52 8 85.0 _bin/cxx-opt+bumproot/osh mut
71 61 10 85.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 70 27 73.5 osh-native mut+alloc
106 72 34 75.4 osh-native mut+alloc+free
161 137 24 49.6 osh-native mut+alloc+free+gc
172 151 21 50.5 osh-native mut+alloc+free+gc+exit
140 90 50 98.9 _bin/cxx-opt+nopool/osh mut+alloc
243 212 31 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 55 33 73.1 osh-native-souffle mut+alloc
96 60 36 75.0 osh-native-souffle mut+alloc+free
157 130 27 49.5 osh-native-souffle mut+alloc+free+gc
161 142 19 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 2 3.0 bash -
7 4 3 3.3 zsh -
6 3 3 10.8 bumpleak/osh mut
7 2 5 11.3 _bin/cxx-opt+bumproot/osh mut
8 6 1 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 6 10.1 osh-native mut+alloc
9 7 2 10.1 osh-native mut+alloc+free
9 5 4 8.5 osh-native mut+alloc+free+gc
9 7 2 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 3 5 9.6 osh-native-souffle mut+alloc
8 6 2 9.7 osh-native-souffle mut+alloc+free
8 6 2 8.1 osh-native-souffle mut+alloc+free+gc
9 3 5 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 27 1 3.0 bash -
24 14 10 3.1 zsh -
18 14 4 31.7 bumpleak/osh mut
26 21 5 31.8 _bin/cxx-opt+bumproot/osh mut
29 26 3 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 32 5 26.2 osh-native mut+alloc
38 27 12 26.7 osh-native mut+alloc+free
28 26 2 8.0 osh-native mut+alloc+free+gc
29 25 4 8.1 osh-native mut+alloc+free+gc+exit
53 36 17 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 32 5 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 12 25.8 osh-native-souffle mut+alloc
32 18 14 26.2 osh-native-souffle mut+alloc+free
22 19 3 7.5 osh-native-souffle mut+alloc+free+gc
22 20 2 7.5 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
72 68 4 3.1 bash -
166 109 58 57.2 bumpleak/osh mut
182 125 57 57.7 _bin/cxx-opt+bumproot/osh mut
193 131 62 58.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 133 80 48.8 osh-native mut+alloc
219 147 73 50.8 osh-native mut+alloc+free
181 128 53 8.9 osh-native mut+alloc+free+gc
181 134 47 8.9 osh-native mut+alloc+free+gc+exit
236 163 73 64.7 _bin/cxx-opt+nopool/osh mut+alloc
211 165 46 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 131 76 48.4 osh-native-souffle mut+alloc
211 119 92 50.3 osh-native-souffle mut+alloc+free
175 128 47 8.4 osh-native-souffle mut+alloc+free+gc
174 127 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 3 7 3.4 dash -
19 14 6 4.3 bash -
17 8 10 3.5 zsh -
19 7 12 12.4 bumpleak/osh mut
19 10 10 12.1 _bin/cxx-opt+bumproot/osh mut
20 10 11 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 6 15 11.1 osh-native mut+alloc
22 12 11 11.1 osh-native mut+alloc+free
22 14 9 9.2 osh-native mut+alloc+free+gc
23 12 12 9.2 osh-native mut+alloc+free+gc+exit
24 13 12 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.7 osh-native-souffle mut+alloc
21 8 14 10.7 osh-native-souffle mut+alloc+free
21 11 10 8.5 osh-native-souffle mut+alloc+free+gc
22 11 11 8.7 osh-native-souffle mut+alloc+free+gc+exit