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.1 17.8 476,735 1,282 6 409,276 5 204,638 osh-native
parse.configure-cpython 33 4 10 12.0 17.6 476,735 1,282 6 408,776 5 204,388 osh-native-souffle
parse.configure-coreutils 180 28 94 41.1 45.9 1,653,323 4,764 12 1,591,958 7 795,979 osh-native
parse.configure-coreutils 157 26 78 44.6 49.5 1,653,322 4,764 12 1,030,660 6 769,414 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,926 180 2 75,248 1 37,624 osh-native
parse.abuild 9 1 1 2.6 8.1 101,926 180 2 75,118 1 37,559 osh-native-souffle
ex.compute-fib 29 0 1 2.4 7.9 584,191 22,608 12 50,000 0 2,901 osh-native
ex.compute-fib 22 0 1 2.4 7.6 584,191 22,608 12 50,000 0 2,839 osh-native-souffle
ex.bashcomp-parse-help 181 0 3 10.3 8.8 995,272 12,911 21 50,000 0 3,889 osh-native
ex.bashcomp-parse-help 173 0 3 10.3 8.4 995,271 12,911 21 50,000 0 3,829 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.2 116,341 270 3 85,484 1 42,742 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,341 270 3 85,360 1 42,680 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 6 0 1.4 dash -
23 19 4 3.1 bash -
106 45 68 3.4 zsh -
17 17 0 29.7 bumpleak/osh mut
19 15 4 29.4 _bin/cxx-opt+bumproot/osh mut
23 8 15 28.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.0 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
37 24 12 17.8 osh-native mut+alloc+free+gc
38 33 4 18.2 osh-native mut+alloc+free+gc+exit
43 20 24 33.1 _bin/cxx-opt+nopool/osh mut+alloc
51 43 9 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 22 4 24.9 osh-native-souffle mut+alloc
30 7 22 25.2 osh-native-souffle mut+alloc+free
33 29 4 17.6 osh-native-souffle mut+alloc+free+gc
34 26 9 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.4 dash -
78 74 4 3.3 bash -
384 213 190 3.7 zsh -
48 40 8 85.1 bumpleak/osh mut
60 48 12 86.2 _bin/cxx-opt+bumproot/osh mut
72 56 16 86.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 61 37 73.4 osh-native mut+alloc
105 77 28 75.3 osh-native mut+alloc+free
180 160 20 45.9 osh-native mut+alloc+free+gc
186 157 28 46.0 osh-native mut+alloc+free+gc+exit
138 87 51 99.1 _bin/cxx-opt+nopool/osh mut+alloc
250 209 40 60.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 60 28 73.3 osh-native-souffle mut+alloc
96 67 28 74.9 osh-native-souffle mut+alloc+free
157 136 20 49.5 osh-native-souffle mut+alloc+free+gc
159 127 32 50.3 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 0 6 2.8 bash -
8 8 0 3.3 zsh -
6 0 6 10.7 bumpleak/osh mut
7 3 3 11.0 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 3 6 8.5 osh-native mut+alloc+free+gc
9 3 6 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 0 8 9.7 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 6 3 8.1 osh-native-souffle mut+alloc+free+gc
9 3 6 8.3 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 7 4 1.4 dash -
29 29 0 2.9 bash -
24 16 8 3.4 zsh -
19 15 4 32.0 bumpleak/osh mut
26 18 7 32.2 _bin/cxx-opt+bumproot/osh mut
29 22 7 32.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.3 osh-native mut+alloc
39 34 4 26.7 osh-native mut+alloc+free
29 28 0 7.9 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 37 17 36.5 _bin/cxx-opt+nopool/osh mut+alloc
37 32 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 26 4 26.1 osh-native-souffle mut+alloc
32 20 12 26.3 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 21 0 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 -
168 96 72 54.1 bumpleak/osh mut
180 120 60 55.7 _bin/cxx-opt+bumproot/osh mut
194 127 67 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 155 59 46.9 osh-native mut+alloc
219 146 73 48.7 osh-native mut+alloc+free
181 121 60 8.8 osh-native mut+alloc+free+gc
183 135 48 8.7 osh-native mut+alloc+free+gc+exit
238 143 95 62.7 _bin/cxx-opt+nopool/osh mut+alloc
212 136 76 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 128 76 46.6 osh-native-souffle mut+alloc
214 153 60 48.3 osh-native-souffle mut+alloc+free
173 102 71 8.4 osh-native-souffle mut+alloc+free+gc
174 114 59 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
10 7 3 3.5 dash -
20 18 3 4.5 bash -
18 6 12 3.5 zsh -
19 12 8 12.5 bumpleak/osh mut
21 11 11 13.2 _bin/cxx-opt+bumproot/osh mut
22 11 12 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 11.0 osh-native mut+alloc
23 20 3 10.9 osh-native mut+alloc+free
23 16 7 9.2 osh-native mut+alloc+free+gc
23 17 6 8.9 osh-native mut+alloc+free+gc+exit
24 18 7 12.3 _bin/cxx-opt+nopool/osh mut+alloc
25 17 9 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.5 osh-native-souffle mut+alloc
21 6 16 10.5 osh-native-souffle mut+alloc+free
21 17 5 8.7 osh-native-souffle mut+alloc+free+gc
22 15 7 8.8 osh-native-souffle mut+alloc+free+gc+exit