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 3 9 12.0 17.8 476,745 1,282 6 406,318 5 203,159 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,745 1,282 6 406,188 5 203,094 osh-native-souffle
parse.configure-coreutils 160 25 74 44.5 49.7 1,653,333 4,764 12 1,025,514 6 764,300 osh-native
parse.configure-coreutils 145 25 66 45.9 51.0 1,653,332 4,764 12 1,063,844 6 792,360 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,936 180 2 75,018 1 37,509 osh-native
parse.abuild 9 1 2 2.4 7.9 101,936 180 3 87,080 1 43,540 osh-native-souffle
ex.compute-fib 28 0 1 2.1 7.9 579,600 22,608 12 50,000 0 2,913 osh-native
ex.compute-fib 22 0 1 2.1 7.6 579,600 22,608 12 50,000 0 2,851 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.3 8.8 995,282 15,258 21 50,000 0 3,895 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.1 995,281 15,258 21 50,000 0 3,840 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,312 277 3 85,236 1 42,618 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,312 277 3 85,112 1 42,556 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.6 dash -
23 23 0 3.0 bash -
106 71 41 3.4 zsh -
18 17 0 29.4 bumpleak/osh mut
20 15 4 29.9 _bin/cxx-opt+bumproot/osh mut
23 19 4 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.3 osh-native mut+alloc
32 20 12 25.8 osh-native mut+alloc+free
36 36 0 17.8 osh-native mut+alloc+free+gc
36 32 4 17.8 osh-native mut+alloc+free+gc+exit
44 32 12 33.3 _bin/cxx-opt+nopool/osh mut+alloc
49 41 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 9 24.8 osh-native-souffle mut+alloc
29 25 4 25.2 osh-native-souffle mut+alloc+free
32 20 12 17.6 osh-native-souffle mut+alloc+free+gc
33 32 0 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
22 22 0 1.6 dash -
78 78 0 3.3 bash -
381 221 183 3.5 zsh -
49 41 8 85.8 bumpleak/osh mut
60 48 12 86.2 _bin/cxx-opt+bumproot/osh mut
70 65 4 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 58 39 73.5 osh-native mut+alloc
106 78 27 75.4 osh-native mut+alloc+free
160 140 20 49.7 osh-native mut+alloc+free+gc
163 131 32 50.4 osh-native mut+alloc+free+gc+exit
140 88 52 99.4 _bin/cxx-opt+nopool/osh mut+alloc
220 172 48 67.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 52 36 73.0 osh-native-souffle mut+alloc
95 62 33 75.0 osh-native-souffle mut+alloc+free
145 117 28 51.0 osh-native-souffle mut+alloc+free+gc
152 132 20 51.7 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 3.0 bash -
8 4 4 3.3 zsh -
6 3 3 11.6 bumpleak/osh mut
7 3 3 11.4 _bin/cxx-opt+bumproot/osh mut
7 4 4 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.8 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 3 6 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.6 osh-native-souffle mut+alloc
8 0 8 9.7 osh-native-souffle mut+alloc+free
9 3 6 7.9 osh-native-souffle mut+alloc+free+gc
9 9 0 8.1 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 -
18 18 0 31.7 bumpleak/osh mut
25 17 8 32.0 _bin/cxx-opt+bumproot/osh mut
29 24 4 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
38 21 17 26.7 osh-native mut+alloc+free
28 27 0 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 41 12 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 17 13 25.8 osh-native-souffle mut+alloc
31 18 13 26.2 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 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 68 4 2.9 bash -
170 99 71 56.0 bumpleak/osh mut
182 115 67 56.3 _bin/cxx-opt+bumproot/osh mut
194 130 63 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 148 64 47.4 osh-native mut+alloc
220 148 72 49.0 osh-native mut+alloc+free
182 117 65 8.8 osh-native mut+alloc+free+gc
185 132 52 8.8 osh-native mut+alloc+free+gc+exit
233 141 93 63.0 _bin/cxx-opt+nopool/osh mut+alloc
210 133 77 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 133 73 46.9 osh-native-souffle mut+alloc
213 140 72 48.7 osh-native-souffle mut+alloc+free
175 123 52 8.1 osh-native-souffle mut+alloc+free+gc
174 107 67 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
10 10 0 3.3 dash -
20 13 8 4.3 bash -
18 11 8 3.4 zsh -
18 12 6 12.0 bumpleak/osh mut
21 11 10 12.9 _bin/cxx-opt+bumproot/osh mut
21 13 8 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 3 11.1 osh-native mut+alloc
22 17 5 11.1 osh-native mut+alloc+free
22 12 11 9.0 osh-native mut+alloc+free+gc
23 14 9 9.2 osh-native mut+alloc+free+gc+exit
25 11 15 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 19 2 10.6 osh-native-souffle mut+alloc
22 13 9 10.5 osh-native-souffle mut+alloc+free
21 18 3 8.7 osh-native-souffle mut+alloc+free+gc
21 17 5 8.7 osh-native-souffle mut+alloc+free+gc+exit