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 35 3 9 12.1 18.0 476,735 1,282 6 409,276 5 204,638 osh-native
parse.configure-cpython 32 3 9 12.0 17.7 476,735 1,282 6 408,776 5 204,388 osh-native-souffle
parse.configure-coreutils 173 20 86 41.1 45.9 1,653,323 4,764 12 1,591,958 7 795,979 osh-native
parse.configure-coreutils 137 22 60 44.6 49.7 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 8 1 1 2.6 8.3 101,926 180 2 75,118 1 37,559 osh-native-souffle
ex.compute-fib 28 0 1 2.4 8.0 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 182 0 3 10.3 8.7 995,272 12,911 21 50,000 0 3,889 osh-native
ex.bashcomp-parse-help 176 0 4 10.3 8.4 995,271 12,911 21 50,000 0 3,829 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.8 116,341 270 3 85,484 1 42,742 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 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
6 6 0 1.6 dash -
23 23 0 3.0 bash -
105 53 58 3.4 zsh -
16 8 8 29.4 bumpleak/osh mut
19 19 0 29.3 _bin/cxx-opt+bumproot/osh mut
22 15 7 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
31 27 4 25.4 osh-native mut+alloc+free
35 23 12 18.0 osh-native mut+alloc+free+gc
36 28 8 18.2 osh-native mut+alloc+free+gc+exit
43 35 9 32.8 _bin/cxx-opt+nopool/osh mut+alloc
48 28 20 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 12 15 24.6 osh-native-souffle mut+alloc
29 20 8 25.2 osh-native-souffle mut+alloc+free
32 16 16 17.7 osh-native-souffle mut+alloc+free+gc
33 25 8 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 -
77 77 0 3.0 bash -
379 200 201 3.5 zsh -
49 45 4 84.9 bumpleak/osh mut
61 53 8 84.7 _bin/cxx-opt+bumproot/osh mut
70 58 12 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 62 35 73.6 osh-native mut+alloc
107 82 24 75.3 osh-native mut+alloc+free
173 148 24 45.9 osh-native mut+alloc+free+gc
163 143 20 46.0 osh-native mut+alloc+free+gc+exit
137 96 40 99.0 _bin/cxx-opt+nopool/osh mut+alloc
226 194 32 60.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 55 31 73.0 osh-native-souffle mut+alloc
96 72 24 75.0 osh-native-souffle mut+alloc+free
137 112 24 49.7 osh-native-souffle mut+alloc+free+gc
140 111 29 50.2 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 2.9 bash -
8 0 7 3.3 zsh -
6 0 6 12.2 bumpleak/osh mut
6 6 0 12.2 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 3 6 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 9.6 _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
8 8 0 8.3 osh-native-souffle mut+alloc+free+gc
8 8 0 8.4 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 7 3 1.4 dash -
29 28 0 2.8 bash -
24 16 8 3.4 zsh -
18 14 4 31.0 bumpleak/osh mut
25 18 7 33.4 _bin/cxx-opt+bumproot/osh mut
28 28 0 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.2 osh-native mut+alloc
38 33 4 26.3 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
27 23 4 7.9 osh-native mut+alloc+free+gc+exit
53 37 16 35.9 _bin/cxx-opt+nopool/osh mut+alloc
36 32 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 26 4 26.1 osh-native-souffle mut+alloc
32 24 8 26.1 osh-native-souffle mut+alloc+free
22 21 0 7.6 osh-native-souffle mut+alloc+free+gc
22 21 0 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
74 69 4 3.1 bash -
168 100 68 55.2 bumpleak/osh mut
181 114 67 54.4 _bin/cxx-opt+bumproot/osh mut
194 129 65 55.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 146 67 47.1 osh-native mut+alloc
220 132 88 48.8 osh-native mut+alloc+free
182 127 55 8.7 osh-native mut+alloc+free+gc
183 138 45 8.8 osh-native mut+alloc+free+gc+exit
232 148 84 63.0 _bin/cxx-opt+nopool/osh mut+alloc
210 154 55 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 137 68 46.5 osh-native-souffle mut+alloc
217 142 75 48.3 osh-native-souffle mut+alloc+free
176 108 68 8.4 osh-native-souffle mut+alloc+free+gc
176 108 68 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 9 1 3.5 dash -
20 15 6 4.5 bash -
18 11 7 3.5 zsh -
18 15 4 11.3 bumpleak/osh mut
20 13 7 12.4 _bin/cxx-opt+bumproot/osh mut
20 10 10 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 21 0 11.0 osh-native mut+alloc
23 11 12 11.1 osh-native mut+alloc+free
22 12 11 8.8 osh-native mut+alloc+free+gc
22 19 4 9.0 osh-native mut+alloc+free+gc+exit
25 15 10 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 11 14 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 12 8 10.6 osh-native-souffle mut+alloc
21 16 6 10.7 osh-native-souffle mut+alloc+free
21 13 9 8.5 osh-native-souffle mut+alloc+free+gc
22 15 8 8.7 osh-native-souffle mut+alloc+free+gc+exit