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 17.7 476,761 1,282 6 406,608 5 203,304 osh-native
parse.configure-cpython 33 4 9 12.0 17.7 476,761 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 169 26 81 44.5 49.8 1,653,349 4,764 12 1,025,530 6 764,308 osh-native
parse.configure-coreutils 140 24 64 44.5 49.5 1,653,348 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,952 180 2 75,034 1 37,517 osh-native
parse.abuild 9 1 2 2.4 8.0 101,952 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.1 579,616 22,608 12 50,000 0 2,921 osh-native
ex.compute-fib 21 0 1 2.2 7.6 579,616 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 188 0 4 10.9 8.8 1,017,214 15,258 21 50,000 0 3,902 osh-native
ex.bashcomp-parse-help 173 0 3 10.9 8.5 1,017,213 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,328 277 3 85,252 1 42,626 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,328 277 3 85,124 1 42,562 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 20 3 3.0 bash -
99 50 56 3.4 zsh -
17 12 4 30.1 bumpleak/osh mut
20 15 5 30.1 _bin/cxx-opt+bumproot/osh mut
22 15 8 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 11 25.2 osh-native mut+alloc
32 25 7 25.7 osh-native mut+alloc+free
36 31 5 17.7 osh-native mut+alloc+free+gc
37 31 6 18.2 osh-native mut+alloc+free+gc+exit
42 27 15 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 33 15 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 18 8 24.9 osh-native-souffle mut+alloc
29 16 13 25.3 osh-native-souffle mut+alloc+free
33 28 5 17.7 osh-native-souffle mut+alloc+free+gc
34 29 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 21 0 1.6 dash -
77 75 2 3.3 bash -
362 203 181 3.4 zsh -
50 42 8 84.7 bumpleak/osh mut
59 53 6 86.0 _bin/cxx-opt+bumproot/osh mut
70 61 9 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
100 59 41 73.5 osh-native mut+alloc
106 64 42 75.4 osh-native mut+alloc+free
169 144 25 49.8 osh-native mut+alloc+free+gc
172 156 16 50.5 osh-native mut+alloc+free+gc+exit
136 98 38 99.0 _bin/cxx-opt+nopool/osh mut+alloc
216 188 28 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 58 29 73.0 osh-native-souffle mut+alloc
96 54 42 74.8 osh-native-souffle mut+alloc+free
140 119 21 49.5 osh-native-souffle mut+alloc+free+gc
142 118 24 49.9 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 5 0 3.0 bash -
7 3 4 3.3 zsh -
6 4 2 11.4 bumpleak/osh mut
7 6 1 11.3 _bin/cxx-opt+bumproot/osh mut
8 5 2 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
10 4 5 9.8 osh-native mut+alloc
9 3 6 10.2 osh-native mut+alloc+free
9 8 1 8.4 osh-native mut+alloc+free+gc
9 7 2 8.5 osh-native mut+alloc+free+gc+exit
12 7 5 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.7 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 6 3 8.0 osh-native-souffle mut+alloc+free+gc
9 8 1 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 9 1 1.4 dash -
28 27 1 2.9 bash -
23 20 3 3.3 zsh -
19 15 4 31.6 bumpleak/osh mut
26 21 5 32.1 _bin/cxx-opt+bumproot/osh mut
28 21 7 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 10 26.3 osh-native mut+alloc
38 26 12 26.6 osh-native mut+alloc+free
28 26 2 8.1 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 34 19 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 21 8 26.1 osh-native-souffle mut+alloc
30 18 12 26.2 osh-native-souffle mut+alloc+free
21 17 4 7.6 osh-native-souffle mut+alloc+free+gc
21 19 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
73 68 5 3.1 bash -
166 118 47 56.8 bumpleak/osh mut
182 127 55 58.0 _bin/cxx-opt+bumproot/osh mut
193 136 57 58.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 138 72 48.6 osh-native mut+alloc
219 145 74 50.4 osh-native mut+alloc+free
188 139 49 8.8 osh-native mut+alloc+free+gc
183 134 49 8.9 osh-native mut+alloc+free+gc+exit
233 167 66 64.6 _bin/cxx-opt+nopool/osh mut+alloc
211 156 55 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 127 77 48.3 osh-native-souffle mut+alloc
211 140 72 50.0 osh-native-souffle mut+alloc+free
173 124 49 8.5 osh-native-souffle mut+alloc+free+gc
175 125 49 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 5 5 3.5 dash -
19 10 10 4.5 bash -
17 4 14 3.4 zsh -
18 7 11 12.8 bumpleak/osh mut
20 11 10 12.5 _bin/cxx-opt+bumproot/osh mut
20 6 14 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 11.0 osh-native mut+alloc
22 10 12 11.1 osh-native mut+alloc+free
22 10 13 9.0 osh-native mut+alloc+free+gc
22 12 11 9.2 osh-native mut+alloc+free+gc+exit
24 11 14 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 11 14 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 5 16 10.5 osh-native-souffle mut+alloc
21 8 13 10.7 osh-native-souffle mut+alloc+free
21 12 9 8.7 osh-native-souffle mut+alloc+free+gc
21 11 11 8.7 osh-native-souffle mut+alloc+free+gc+exit