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 37 5 11 12.0 18.0 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 34 4 11 12.0 17.7 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 172 31 84 44.5 50.0 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 137 26 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.3 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 29 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.7 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 11.1 8.9 1,021,036 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 174 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 20 1 2 2.8 8.8 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.4 dash -
23 20 3 3.0 bash -
101 54 54 3.4 zsh -
17 12 5 28.0 bumpleak/osh mut
20 17 3 29.0 _bin/cxx-opt+bumproot/osh mut
23 20 3 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 9 25.2 osh-native mut+alloc
31 24 8 25.7 osh-native mut+alloc+free
37 30 7 18.0 osh-native mut+alloc+free+gc
37 30 6 18.2 osh-native mut+alloc+free+gc+exit
42 30 13 32.4 _bin/cxx-opt+nopool/osh mut+alloc
50 45 5 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 18 9 24.9 osh-native-souffle mut+alloc
30 21 9 25.3 osh-native-souffle mut+alloc+free
34 28 6 17.7 osh-native-souffle mut+alloc+free+gc
36 27 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 21 0 1.4 dash -
78 75 3 3.3 bash -
364 186 200 3.5 zsh -
49 40 9 85.9 bumpleak/osh mut
60 51 9 85.9 _bin/cxx-opt+bumproot/osh mut
71 62 9 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 63 35 73.4 osh-native mut+alloc
106 77 29 75.4 osh-native mut+alloc+free
172 151 21 50.0 osh-native mut+alloc+free+gc
182 159 23 50.5 osh-native mut+alloc+free+gc+exit
139 85 54 98.9 _bin/cxx-opt+nopool/osh mut+alloc
215 181 34 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 65 23 73.3 osh-native-souffle mut+alloc
98 58 39 75.0 osh-native-souffle mut+alloc+free
137 116 21 49.4 osh-native-souffle mut+alloc+free+gc
169 148 21 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 2 0 1.3 dash -
6 5 1 3.0 bash -
7 4 3 3.3 zsh -
6 6 0 12.2 bumpleak/osh mut
7 4 3 11.9 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.0 osh-native mut+alloc
9 4 5 10.0 osh-native mut+alloc+free
9 5 4 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 5 7 11.6 _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 5 3 9.8 osh-native-souffle mut+alloc+free
8 6 3 8.3 osh-native-souffle mut+alloc+free+gc
8 4 5 8.0 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 28 1 3.0 bash -
23 19 4 3.3 zsh -
18 14 4 31.0 bumpleak/osh mut
26 20 6 33.2 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.2 osh-native mut+alloc
39 29 10 26.6 osh-native mut+alloc+free
29 24 5 8.0 osh-native mut+alloc+free+gc
28 26 2 8.0 osh-native mut+alloc+free+gc+exit
53 33 20 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 32 6 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 23 7 25.8 osh-native-souffle mut+alloc
31 21 11 26.3 osh-native-souffle mut+alloc+free
22 20 2 7.7 osh-native-souffle mut+alloc+free+gc
22 20 2 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
72 66 6 3.0 bash -
169 109 60 56.4 bumpleak/osh mut
181 119 62 57.6 _bin/cxx-opt+bumproot/osh mut
195 126 69 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 147 68 49.0 osh-native mut+alloc
224 162 63 50.9 osh-native mut+alloc+free
182 116 65 8.9 osh-native mut+alloc+free+gc
183 136 47 8.9 osh-native mut+alloc+free+gc+exit
236 149 87 64.7 _bin/cxx-opt+nopool/osh mut+alloc
211 164 47 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 139 67 48.6 osh-native-souffle mut+alloc
213 139 73 50.4 osh-native-souffle mut+alloc+free
174 130 44 8.5 osh-native-souffle mut+alloc+free+gc
174 121 53 8.3 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 5 3.5 dash -
19 12 8 4.3 bash -
17 7 10 3.4 zsh -
18 11 8 13.3 bumpleak/osh mut
19 9 10 12.0 _bin/cxx-opt+bumproot/osh mut
20 7 13 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 12 11.1 osh-native mut+alloc
23 9 14 11.1 osh-native mut+alloc+free
22 11 12 9.2 osh-native mut+alloc+free+gc
23 9 15 9.2 osh-native mut+alloc+free+gc+exit
24 10 15 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 13 13 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 11 10.7 osh-native-souffle mut+alloc
21 11 10 10.9 osh-native-souffle mut+alloc+free
20 9 12 8.8 osh-native-souffle mut+alloc+free+gc
22 11 12 8.7 osh-native-souffle mut+alloc+free+gc+exit