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 18.1 476,744 1,282 6 406,316 5 203,158 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 476,744 1,282 6 406,186 5 203,093 osh-native-souffle
parse.configure-coreutils 153 24 68 44.5 49.7 1,653,332 4,764 12 1,025,512 6 764,299 osh-native
parse.configure-coreutils 155 25 75 45.9 50.9 1,653,331 4,764 12 1,063,842 6 792,359 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,935 180 2 75,016 1 37,508 osh-native
parse.abuild 9 1 2 2.4 7.9 101,935 180 3 87,078 1 43,539 osh-native-souffle
ex.compute-fib 27 0 1 2.1 8.0 579,599 22,608 12 50,000 0 2,912 osh-native
ex.compute-fib 21 0 1 2.1 7.3 579,599 22,608 12 50,000 0 2,850 osh-native-souffle
ex.bashcomp-parse-help 181 0 3 10.3 8.7 995,281 15,258 21 50,000 0 3,894 osh-native
ex.bashcomp-parse-help 176 0 3 10.3 8.3 995,280 15,258 21 50,000 0 3,839 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.2 116,311 277 3 85,234 1 42,617 osh-native
ex.abuild-print-help 21 1 2 2.8 8.4 116,311 277 3 85,110 1 42,555 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 19 4 3.1 bash -
105 56 55 3.5 zsh -
16 16 0 29.5 bumpleak/osh mut
20 16 4 28.7 _bin/cxx-opt+bumproot/osh mut
22 18 4 28.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 14 14 25.0 osh-native mut+alloc
31 23 8 25.7 osh-native mut+alloc+free
36 32 4 18.1 osh-native mut+alloc+free+gc
36 20 16 18.1 osh-native mut+alloc+free+gc+exit
42 29 13 32.6 _bin/cxx-opt+nopool/osh mut+alloc
48 44 4 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.8 osh-native-souffle mut+alloc
29 12 16 25.2 osh-native-souffle mut+alloc+free
33 29 4 17.4 osh-native-souffle mut+alloc+free+gc
33 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
22 21 0 1.6 dash -
78 74 4 3.3 bash -
376 223 176 3.5 zsh -
49 44 4 84.1 bumpleak/osh mut
60 48 12 84.4 _bin/cxx-opt+bumproot/osh mut
70 61 8 86.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 48 48 73.4 osh-native mut+alloc
104 88 16 75.4 osh-native mut+alloc+free
153 133 20 49.7 osh-native mut+alloc+free+gc
164 152 12 50.5 osh-native mut+alloc+free+gc+exit
139 99 40 97.5 _bin/cxx-opt+nopool/osh mut+alloc
243 222 20 67.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 64 24 73.1 osh-native-souffle mut+alloc
98 53 45 75.0 osh-native-souffle mut+alloc+free
155 139 16 50.9 osh-native-souffle mut+alloc+free+gc
147 111 36 51.5 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 3.0 bash -
8 4 4 3.3 zsh -
6 0 6 10.8 bumpleak/osh mut
7 7 0 11.4 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
9 3 6 8.7 osh-native mut+alloc+free+gc
10 0 10 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 9 0 7.9 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
11 11 0 1.6 dash -
29 25 4 2.9 bash -
23 8 15 3.4 zsh -
19 15 4 31.9 bumpleak/osh mut
26 21 4 31.6 _bin/cxx-opt+bumproot/osh mut
29 20 8 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.2 osh-native mut+alloc
38 26 11 26.6 osh-native mut+alloc+free
27 27 0 8.0 osh-native mut+alloc+free+gc
28 27 0 7.9 osh-native mut+alloc+free+gc+exit
55 35 19 35.7 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.1 osh-native-souffle mut+alloc
33 24 8 26.1 osh-native-souffle mut+alloc+free
21 17 4 7.3 osh-native-souffle mut+alloc+free+gc
21 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
74 70 4 3.0 bash -
167 115 52 55.9 bumpleak/osh mut
184 127 56 56.0 _bin/cxx-opt+bumproot/osh mut
196 128 68 55.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
208 120 88 47.3 osh-native mut+alloc
219 138 81 49.0 osh-native mut+alloc+free
181 125 56 8.7 osh-native mut+alloc+free+gc
182 141 40 8.7 osh-native mut+alloc+free+gc+exit
234 169 65 64.4 _bin/cxx-opt+nopool/osh mut+alloc
213 169 44 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 124 80 47.0 osh-native-souffle mut+alloc
212 140 72 48.6 osh-native-souffle mut+alloc+free
176 119 56 8.3 osh-native-souffle mut+alloc+free+gc
174 125 49 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 8 2 3.5 dash -
19 17 3 4.3 bash -
18 10 9 3.5 zsh -
18 15 3 13.1 bumpleak/osh mut
20 14 7 12.6 _bin/cxx-opt+bumproot/osh mut
20 11 10 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 9 11.1 osh-native mut+alloc
22 11 12 11.1 osh-native mut+alloc+free
23 18 5 9.2 osh-native mut+alloc+free+gc
23 18 6 8.9 osh-native mut+alloc+free+gc+exit
24 19 6 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 19 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 17 3 10.6 osh-native-souffle mut+alloc
22 20 2 10.7 osh-native-souffle mut+alloc+free
21 17 5 8.4 osh-native-souffle mut+alloc+free+gc
23 16 7 8.4 osh-native-souffle mut+alloc+free+gc+exit