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 38 4 11 12.0 18.0 476,753 1,282 6 406,608 5 203,304 osh-native
parse.configure-cpython 37 6 12 12.0 17.7 476,753 1,282 6 406,204 5 203,102 osh-native-souffle
parse.configure-coreutils 179 32 90 44.5 49.8 1,653,341 4,764 12 1,025,530 6 764,308 osh-native
parse.configure-coreutils 169 28 89 44.5 49.4 1,653,340 4,764 12 1,025,400 6 764,243 osh-native-souffle
parse.abuild 10 1 1 2.6 8.5 101,944 180 2 75,034 1 37,517 osh-native
parse.abuild 10 1 2 2.4 8.0 101,944 180 3 87,096 1 43,548 osh-native-souffle
ex.compute-fib 28 0 2 2.1 8.1 579,608 22,608 12 50,000 0 2,921 osh-native
ex.compute-fib 22 0 1 2.1 7.5 579,608 22,608 12 50,000 0 2,860 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.3 8.8 995,290 15,258 21 50,000 0 3,903 osh-native
ex.bashcomp-parse-help 176 0 4 10.3 8.4 995,289 15,258 21 50,000 0 3,846 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,320 277 3 85,252 1 42,626 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,320 277 3 85,128 1 42,564 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 3 3 1.4 dash -
24 23 0 3.0 bash -
108 57 57 3.4 zsh -
16 8 8 28.9 bumpleak/osh mut
20 16 4 29.3 _bin/cxx-opt+bumproot/osh mut
23 7 15 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 11 19 25.0 osh-native mut+alloc
33 24 8 25.4 osh-native mut+alloc+free
38 34 4 18.0 osh-native mut+alloc+free+gc
37 33 4 18.0 osh-native mut+alloc+free+gc+exit
44 24 20 32.2 _bin/cxx-opt+nopool/osh mut+alloc
64 48 16 22.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
28 16 12 24.9 osh-native-souffle mut+alloc
31 19 11 25.4 osh-native-souffle mut+alloc+free
37 29 8 17.7 osh-native-souffle mut+alloc+free+gc
38 26 11 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
22 21 0 1.6 dash -
77 77 0 3.0 bash -
387 222 186 3.7 zsh -
49 37 12 83.8 bumpleak/osh mut
63 58 4 85.4 _bin/cxx-opt+bumproot/osh mut
71 59 12 86.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 63 35 73.5 osh-native mut+alloc
108 80 28 75.4 osh-native mut+alloc+free
179 162 16 49.8 osh-native mut+alloc+free+gc
187 163 24 50.3 osh-native mut+alloc+free+gc+exit
140 100 40 98.3 _bin/cxx-opt+nopool/osh mut+alloc
250 218 32 67.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
91 74 17 73.0 osh-native-souffle mut+alloc
98 65 33 75.1 osh-native-souffle mut+alloc+free
169 149 20 49.4 osh-native-souffle mut+alloc+free+gc
185 152 32 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.4 dash -
6 6 0 2.9 bash -
8 4 4 3.1 zsh -
6 0 6 12.2 bumpleak/osh mut
7 4 4 11.2 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 9.8 osh-native mut+alloc
9 5 5 10.1 osh-native mut+alloc+free
10 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
9 6 3 9.8 osh-native-souffle mut+alloc+free
10 3 6 8.0 osh-native-souffle mut+alloc+free+gc
9 9 0 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 10 0 1.4 dash -
29 29 0 2.9 bash -
24 12 12 3.3 zsh -
19 15 4 32.2 bumpleak/osh mut
27 23 4 31.9 _bin/cxx-opt+bumproot/osh mut
27 23 4 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.3 osh-native mut+alloc
37 29 8 26.3 osh-native mut+alloc+free
28 24 4 8.1 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 41 12 36.3 _bin/cxx-opt+nopool/osh mut+alloc
38 30 7 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 26 4 26.0 osh-native-souffle mut+alloc
32 20 12 26.2 osh-native-souffle mut+alloc+free
22 13 9 7.5 osh-native-souffle mut+alloc+free+gc
22 18 4 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 70 4 3.1 bash -
170 121 49 54.6 bumpleak/osh mut
183 123 59 56.6 _bin/cxx-opt+bumproot/osh mut
196 140 56 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 142 71 47.4 osh-native mut+alloc
219 155 64 49.0 osh-native mut+alloc+free
182 127 56 8.8 osh-native mut+alloc+free+gc
184 124 60 8.8 osh-native mut+alloc+free+gc+exit
233 142 91 63.2 _bin/cxx-opt+nopool/osh mut+alloc
209 152 56 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 139 67 46.9 osh-native-souffle mut+alloc
210 125 85 48.7 osh-native-souffle mut+alloc+free
176 124 52 8.4 osh-native-souffle mut+alloc+free+gc
176 132 44 8.5 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 8 2 3.5 dash -
21 12 9 4.5 bash -
18 5 13 3.4 zsh -
19 14 5 13.1 bumpleak/osh mut
21 14 7 12.0 _bin/cxx-opt+bumproot/osh mut
20 18 3 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 6 11.0 osh-native mut+alloc
22 20 3 11.3 osh-native mut+alloc+free
23 11 12 9.0 osh-native mut+alloc+free+gc
24 22 2 9.0 osh-native mut+alloc+free+gc+exit
25 17 8 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 19 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
22 18 5 10.5 osh-native-souffle mut+alloc
21 12 10 10.7 osh-native-souffle mut+alloc+free
21 20 2 8.7 osh-native-souffle mut+alloc+free+gc
22 20 3 8.5 osh-native-souffle mut+alloc+free+gc+exit