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 43 7 15 12.0 17.8 476,761 1,282 6 406,608 5 203,304 osh-native
parse.configure-cpython 41 8 16 12.0 17.4 476,761 1,282 6 406,228 5 203,114 osh-native-souffle
parse.configure-coreutils 212 36 118 44.5 49.9 1,653,349 4,764 12 1,025,530 6 764,308 osh-native
parse.configure-coreutils 190 34 108 44.5 49.4 1,653,348 4,764 12 1,025,424 6 764,255 osh-native-souffle
parse.abuild 10 1 2 2.6 8.7 101,952 180 2 75,034 1 37,517 osh-native
parse.abuild 10 1 2 2.4 7.7 101,952 180 3 87,120 1 43,560 osh-native-souffle
ex.compute-fib 29 0 2 2.2 8.1 579,616 22,608 12 50,000 0 2,921 osh-native
ex.compute-fib 22 0 2 2.2 7.6 579,616 22,608 12 50,000 0 2,872 osh-native-souffle
ex.bashcomp-parse-help 191 0 6 10.9 8.8 1,017,214 15,258 21 50,000 0 3,902 osh-native
ex.bashcomp-parse-help 180 0 6 10.9 8.3 1,017,213 15,258 21 50,000 0 3,856 osh-native-souffle
ex.abuild-print-help 25 1 2 2.8 9.2 116,328 277 3 85,252 1 42,626 osh-native
ex.abuild-print-help 23 1 2 2.8 8.5 116,328 277 3 85,152 1 42,576 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 5 2 1.6 dash -
23 22 1 3.1 bash -
110 61 56 3.4 zsh -
17 15 2 29.5 bumpleak/osh mut
20 14 6 29.7 _bin/cxx-opt+bumproot/osh mut
23 12 10 29.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 16 15 25.4 osh-native mut+alloc
32 18 14 25.7 osh-native mut+alloc+free
43 36 7 17.8 osh-native mut+alloc+free+gc
48 42 6 18.2 osh-native mut+alloc+free+gc+exit
43 29 14 32.4 _bin/cxx-opt+nopool/osh mut+alloc
63 51 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 16 11 24.8 osh-native-souffle mut+alloc
30 15 15 25.3 osh-native-souffle mut+alloc+free
41 33 8 17.4 osh-native-souffle mut+alloc+free+gc
40 32 8 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 19 2 1.6 dash -
78 77 1 3.0 bash -
384 213 194 3.5 zsh -
52 43 9 85.6 bumpleak/osh mut
61 49 12 84.5 _bin/cxx-opt+bumproot/osh mut
71 53 19 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 74 24 73.4 osh-native mut+alloc
111 78 33 75.2 osh-native mut+alloc+free
212 184 28 49.9 osh-native mut+alloc+free+gc
202 176 26 50.5 osh-native mut+alloc+free+gc+exit
137 94 42 99.0 _bin/cxx-opt+nopool/osh mut+alloc
284 253 31 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 58 32 73.3 osh-native-souffle mut+alloc
100 67 33 75.0 osh-native-souffle mut+alloc+free
190 174 16 49.4 osh-native-souffle mut+alloc+free+gc
198 174 24 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 -
6 4 2 3.0 bash -
8 3 4 3.3 zsh -
6 4 3 11.2 bumpleak/osh mut
7 4 3 12.0 _bin/cxx-opt+bumproot/osh mut
8 2 6 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 6 3 10.1 osh-native mut+alloc
9 5 4 10.0 osh-native mut+alloc+free
10 6 4 8.7 osh-native mut+alloc+free+gc
10 7 3 8.4 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
13 8 5 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
9 5 4 9.6 osh-native-souffle mut+alloc+free
10 7 3 7.7 osh-native-souffle mut+alloc+free+gc
10 5 5 7.9 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 -
31 30 1 3.0 bash -
23 14 9 3.3 zsh -
20 15 5 32.7 bumpleak/osh mut
27 24 3 32.3 _bin/cxx-opt+bumproot/osh mut
29 23 6 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
38 28 11 26.3 osh-native mut+alloc
40 27 13 26.6 osh-native mut+alloc+free
29 27 2 8.1 osh-native mut+alloc+free+gc
30 28 2 8.0 osh-native mut+alloc+free+gc+exit
57 38 19 36.1 _bin/cxx-opt+nopool/osh mut+alloc
39 34 5 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
32 18 13 26.0 osh-native-souffle mut+alloc
33 19 14 26.2 osh-native-souffle mut+alloc+free
22 21 1 7.6 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
75 74 1 3.1 bash -
171 109 62 55.6 bumpleak/osh mut
184 124 60 56.8 _bin/cxx-opt+bumproot/osh mut
200 129 71 57.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
220 139 80 48.9 osh-native mut+alloc
232 154 78 50.6 osh-native mut+alloc+free
191 142 48 8.8 osh-native mut+alloc+free+gc
193 140 53 8.7 osh-native mut+alloc+free+gc+exit
237 142 94 64.6 _bin/cxx-opt+nopool/osh mut+alloc
250 197 53 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
210 139 71 48.2 osh-native-souffle mut+alloc
218 152 67 50.0 osh-native-souffle mut+alloc+free
180 129 52 8.3 osh-native-souffle mut+alloc+free+gc
180 119 61 8.1 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
10 4 7 3.4 dash -
21 13 8 4.5 bash -
18 6 13 3.5 zsh -
20 12 8 11.2 bumpleak/osh mut
22 8 15 13.1 _bin/cxx-opt+bumproot/osh mut
23 7 17 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 9 14 11.1 osh-native mut+alloc
25 11 14 11.1 osh-native mut+alloc+free
25 14 11 9.2 osh-native mut+alloc+free+gc
26 15 11 9.0 osh-native mut+alloc+free+gc+exit
26 12 15 12.8 _bin/cxx-opt+nopool/osh mut+alloc
28 17 12 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
22 8 15 10.6 osh-native-souffle mut+alloc
23 9 15 10.5 osh-native-souffle mut+alloc+free
23 14 10 8.5 osh-native-souffle mut+alloc+free+gc
23 10 14 8.7 osh-native-souffle mut+alloc+free+gc+exit