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 37 4 10 12.0 17.8 476,745 1,282 6 406,318 5 203,159 osh-native
parse.configure-cpython 35 4 11 12.0 17.4 476,745 1,282 6 406,188 5 203,094 osh-native-souffle
parse.configure-coreutils 169 27 81 44.5 50.0 1,653,333 4,764 12 1,025,514 6 764,300 osh-native
parse.configure-coreutils 151 28 72 45.9 51.0 1,653,332 4,764 12 1,063,844 6 792,360 osh-native-souffle
parse.abuild 10 1 2 2.6 8.5 101,936 180 2 75,018 1 37,509 osh-native
parse.abuild 9 1 2 2.4 7.7 101,936 180 3 87,080 1 43,540 osh-native-souffle
ex.compute-fib 28 0 2 2.1 8.0 579,600 22,608 12 50,000 0 2,913 osh-native
ex.compute-fib 22 0 2 2.1 7.6 579,600 22,608 12 50,000 0 2,851 osh-native-souffle
ex.bashcomp-parse-help 185 0 4 10.3 8.7 995,282 15,258 21 50,000 0 3,895 osh-native
ex.bashcomp-parse-help 181 0 4 10.3 8.3 995,281 15,258 21 50,000 0 3,840 osh-native-souffle
ex.abuild-print-help 26 1 2 2.8 9.2 116,312 277 3 85,236 1 42,618 osh-native
ex.abuild-print-help 24 1 2 2.8 8.5 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
7 7 0 1.6 dash -
24 24 0 3.0 bash -
113 63 56 3.4 zsh -
17 10 7 28.0 bumpleak/osh mut
19 15 4 29.1 _bin/cxx-opt+bumproot/osh mut
23 18 4 28.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 19 11 25.0 osh-native mut+alloc
32 28 4 25.7 osh-native mut+alloc+free
37 33 4 17.8 osh-native mut+alloc+free+gc
41 36 4 18.0 osh-native mut+alloc+free+gc+exit
43 38 4 32.0 _bin/cxx-opt+nopool/osh mut+alloc
60 48 12 22.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 24.9 osh-native-souffle mut+alloc
30 15 15 25.3 osh-native-souffle mut+alloc+free
35 27 8 17.4 osh-native-souffle mut+alloc+free+gc
35 35 0 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
22 21 0 1.6 dash -
79 75 4 3.3 bash -
403 256 168 3.4 zsh -
49 25 25 85.4 bumpleak/osh mut
61 50 11 85.0 _bin/cxx-opt+bumproot/osh mut
70 45 25 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 75 24 73.7 osh-native mut+alloc
106 63 43 75.2 osh-native mut+alloc+free
169 156 12 50.0 osh-native mut+alloc+free+gc
170 138 32 50.5 osh-native mut+alloc+free+gc+exit
142 97 44 98.3 _bin/cxx-opt+nopool/osh mut+alloc
228 200 28 67.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 40 48 73.1 osh-native-souffle mut+alloc
98 78 20 75.0 osh-native-souffle mut+alloc+free
151 135 16 51.0 osh-native-souffle mut+alloc+free+gc
161 141 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 3 3 2.9 bash -
8 4 4 3.4 zsh -
6 3 3 10.4 bumpleak/osh mut
8 8 0 11.7 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
10 6 3 10.2 osh-native mut+alloc+free
10 5 5 8.5 osh-native mut+alloc+free+gc
9 5 5 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
13 7 7 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
9 9 0 9.6 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 4 4 7.7 osh-native-souffle mut+alloc+free+gc
11 7 4 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
11 11 0 1.4 dash -
29 29 0 2.9 bash -
24 16 8 3.3 zsh -
19 18 0 32.7 bumpleak/osh mut
26 25 0 31.3 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.5 osh-native mut+alloc
39 31 8 26.7 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 24 4 7.7 osh-native mut+alloc+free+gc+exit
55 35 20 36.2 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 30 0 26.0 osh-native-souffle mut+alloc
32 16 16 26.3 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
22 17 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
75 70 4 3.0 bash -
172 112 60 54.2 bumpleak/osh mut
186 133 52 54.7 _bin/cxx-opt+bumproot/osh mut
197 120 76 55.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 142 73 47.4 osh-native mut+alloc
222 151 71 49.0 osh-native mut+alloc+free
185 129 56 8.7 osh-native mut+alloc+free+gc
187 135 52 8.9 osh-native mut+alloc+free+gc+exit
237 150 87 64.1 _bin/cxx-opt+nopool/osh mut+alloc
211 159 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 126 81 46.9 osh-native-souffle mut+alloc
216 144 72 48.6 osh-native-souffle mut+alloc+free
181 133 48 8.3 osh-native-souffle mut+alloc+free+gc
180 139 40 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 9 1 3.4 dash -
21 12 9 4.5 bash -
20 5 16 3.5 zsh -
21 17 4 12.9 bumpleak/osh mut
21 15 7 12.2 _bin/cxx-opt+bumproot/osh mut
21 20 2 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
24 7 18 11.1 osh-native mut+alloc
23 16 7 11.0 osh-native mut+alloc+free
26 19 6 9.2 osh-native mut+alloc+free+gc
23 13 11 9.2 osh-native mut+alloc+free+gc+exit
27 5 22 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 19 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
23 12 12 10.4 osh-native-souffle mut+alloc
22 16 6 10.9 osh-native-souffle mut+alloc+free
24 18 7 8.5 osh-native-souffle mut+alloc+free+gc
23 14 9 8.3 osh-native-souffle mut+alloc+free+gc+exit