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 10 12.0 18.0 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 33 4 10 12.0 17.3 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 156 24 70 44.5 49.8 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 146 26 70 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.4 101,957 180 2 75,044 1 37,522 osh-native
parse.abuild 9 1 1 2.6 8.0 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 28 0 2 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.6 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 11.1 8.8 1,023,680 15,258 22 50,000 0 3,942 osh-native
ex.bashcomp-parse-help 205 0 4 11.1 8.3 1,023,679 15,258 22 50,000 0 3,943 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,372 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,372 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 23 0 3.0 bash -
101 51 56 3.3 zsh -
16 13 3 28.8 bumpleak/osh mut
20 16 4 28.4 _bin/cxx-opt+bumproot/osh mut
28 24 4 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.2 osh-native mut+alloc
32 21 11 25.7 osh-native mut+alloc+free
36 27 9 18.0 osh-native mut+alloc+free+gc
40 31 9 18.1 osh-native mut+alloc+free+gc+exit
42 24 18 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 33 15 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 16 11 24.9 osh-native-souffle mut+alloc
29 16 13 25.3 osh-native-souffle mut+alloc+free
33 22 11 17.3 osh-native-souffle mut+alloc+free+gc
34 28 5 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 19 2 1.6 dash -
78 77 1 3.3 bash -
363 191 194 3.5 zsh -
49 42 7 84.5 bumpleak/osh mut
60 49 10 84.6 _bin/cxx-opt+bumproot/osh mut
71 56 15 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 57 39 73.4 osh-native mut+alloc
103 66 38 75.2 osh-native mut+alloc+free
156 128 28 49.8 osh-native mut+alloc+free+gc
151 129 22 50.5 osh-native mut+alloc+free+gc+exit
150 106 45 98.9 _bin/cxx-opt+nopool/osh mut+alloc
213 179 34 66.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 55 32 73.1 osh-native-souffle mut+alloc
95 71 24 75.0 osh-native-souffle mut+alloc+free
146 124 22 49.3 osh-native-souffle mut+alloc+free+gc
149 124 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.4 dash -
5 4 1 3.0 bash -
7 4 3 3.4 zsh -
7 5 2 11.8 bumpleak/osh mut
6 3 4 12.2 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 5 10.1 osh-native mut+alloc
9 5 4 10.2 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
9 8 1 8.5 osh-native mut+alloc+free+gc+exit
12 10 2 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 8 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.4 osh-native-souffle mut+alloc
8 3 5 10.0 osh-native-souffle mut+alloc+free
9 6 3 8.0 osh-native-souffle mut+alloc+free+gc
9 4 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 9 1 1.4 dash -
29 29 0 3.0 bash -
23 17 6 3.4 zsh -
19 13 6 32.5 bumpleak/osh mut
26 21 5 33.1 _bin/cxx-opt+bumproot/osh mut
28 23 5 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 29 7 26.5 osh-native mut+alloc
37 28 9 26.7 osh-native mut+alloc+free
28 25 3 8.0 osh-native mut+alloc+free+gc
28 27 1 8.0 osh-native mut+alloc+free+gc+exit
54 38 16 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 16 14 26.0 osh-native-souffle mut+alloc
31 17 15 26.3 osh-native-souffle mut+alloc+free
22 19 2 7.6 osh-native-souffle mut+alloc+free+gc
21 17 5 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
74 73 1 3.0 bash -
167 117 50 57.2 bumpleak/osh mut
183 131 52 56.6 _bin/cxx-opt+bumproot/osh mut
194 124 70 58.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 123 90 48.9 osh-native mut+alloc
221 153 67 50.7 osh-native mut+alloc+free
183 133 50 8.8 osh-native mut+alloc+free+gc
185 138 46 8.9 osh-native mut+alloc+free+gc+exit
235 159 76 64.6 _bin/cxx-opt+nopool/osh mut+alloc
212 155 57 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 142 62 48.5 osh-native-souffle mut+alloc
214 144 70 50.4 osh-native-souffle mut+alloc+free
205 151 54 8.3 osh-native-souffle mut+alloc+free+gc
176 126 50 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 6 3.4 dash -
19 12 8 4.5 bash -
17 9 9 3.5 zsh -
19 9 10 12.4 bumpleak/osh mut
19 10 10 11.8 _bin/cxx-opt+bumproot/osh mut
20 10 10 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 8 13 11.1 osh-native mut+alloc
22 9 13 11.3 osh-native mut+alloc+free
22 10 13 9.0 osh-native mut+alloc+free+gc
23 8 15 9.2 osh-native mut+alloc+free+gc+exit
24 15 10 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 11 14 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 10 10.7 osh-native-souffle mut+alloc
21 11 10 10.7 osh-native-souffle mut+alloc+free
21 12 9 8.7 osh-native-souffle mut+alloc+free+gc
21 7 15 8.7 osh-native-souffle mut+alloc+free+gc+exit