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 33 4 10 12.0 17.4 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 143 23 57 44.5 49.7 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 138 24 62 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.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 21 0 2 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,021,038 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 173 0 4 11.1 8.5 1,021,037 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 8.9 116,356 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 20 1 2 2.8 8.8 116,356 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 -
24 24 0 3.0 bash -
99 57 48 3.4 zsh -
16 13 3 27.8 bumpleak/osh mut
19 17 2 29.1 _bin/cxx-opt+bumproot/osh mut
22 15 7 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 9 25.2 osh-native mut+alloc
31 19 12 25.7 osh-native mut+alloc+free
35 26 8 18.0 osh-native mut+alloc+free+gc
36 28 8 17.8 osh-native mut+alloc+free+gc+exit
42 28 14 32.5 _bin/cxx-opt+nopool/osh mut+alloc
47 41 6 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 12 15 24.8 osh-native-souffle mut+alloc
28 22 6 25.4 osh-native-souffle mut+alloc+free
33 21 12 17.4 osh-native-souffle mut+alloc+free+gc
35 31 4 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 76 2 3.1 bash -
360 203 178 3.5 zsh -
48 39 9 84.9 bumpleak/osh mut
60 49 11 85.0 _bin/cxx-opt+bumproot/osh mut
71 63 8 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 63 33 73.6 osh-native mut+alloc
104 74 30 75.3 osh-native mut+alloc+free
143 123 20 49.7 osh-native mut+alloc+free+gc
143 122 21 50.4 osh-native mut+alloc+free+gc+exit
137 96 41 98.9 _bin/cxx-opt+nopool/osh mut+alloc
196 167 29 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 56 33 73.0 osh-native-souffle mut+alloc
95 73 22 75.0 osh-native-souffle mut+alloc+free
138 119 19 49.3 osh-native-souffle mut+alloc+free+gc
139 116 23 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 0 2 1.3 dash -
5 4 2 2.9 bash -
7 6 1 3.3 zsh -
6 5 1 11.0 bumpleak/osh mut
6 4 2 12.0 _bin/cxx-opt+bumproot/osh mut
7 2 5 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 7 1 9.8 osh-native mut+alloc
8 5 3 10.2 osh-native mut+alloc+free
9 6 2 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
11 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 4 3 9.6 osh-native-souffle mut+alloc
8 6 1 9.8 osh-native-souffle mut+alloc+free
8 5 4 8.1 osh-native-souffle mut+alloc+free+gc
8 7 1 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 -
28 26 2 3.0 bash -
22 17 5 3.4 zsh -
19 15 3 32.1 bumpleak/osh mut
26 20 6 32.8 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 10 26.5 osh-native mut+alloc
37 23 14 26.6 osh-native mut+alloc+free
28 25 3 8.0 osh-native mut+alloc+free+gc
28 27 1 7.9 osh-native mut+alloc+free+gc+exit
53 39 14 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 35 2 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 17 12 26.1 osh-native-souffle mut+alloc
30 21 9 26.2 osh-native-souffle mut+alloc+free
21 19 2 7.6 osh-native-souffle mut+alloc+free+gc
21 18 3 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
74 71 4 3.1 bash -
165 105 60 56.1 bumpleak/osh mut
183 112 71 56.7 _bin/cxx-opt+bumproot/osh mut
195 143 52 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 133 79 49.0 osh-native mut+alloc
218 152 66 50.8 osh-native mut+alloc+free
183 138 45 8.8 osh-native mut+alloc+free+gc
181 141 40 8.8 osh-native mut+alloc+free+gc+exit
232 158 74 64.5 _bin/cxx-opt+nopool/osh mut+alloc
209 158 51 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 128 74 48.6 osh-native-souffle mut+alloc
215 156 59 50.3 osh-native-souffle mut+alloc+free
173 114 59 8.5 osh-native-souffle mut+alloc+free+gc
175 116 59 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.3 dash -
19 10 10 4.5 bash -
17 9 9 3.5 zsh -
19 6 13 12.6 bumpleak/osh mut
20 8 12 13.0 _bin/cxx-opt+bumproot/osh mut
19 10 10 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 12 11.0 osh-native mut+alloc
21 7 14 11.3 osh-native mut+alloc+free
21 10 12 8.9 osh-native mut+alloc+free+gc
22 15 8 9.0 osh-native mut+alloc+free+gc+exit
50 27 24 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 11 14 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 9 11 10.6 osh-native-souffle mut+alloc
20 9 12 10.7 osh-native-souffle mut+alloc+free
20 10 11 8.8 osh-native-souffle mut+alloc+free+gc
21 9 12 8.7 osh-native-souffle mut+alloc+free+gc+exit