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.0 17.8 476,773 1,282 6 406,626 5 203,313 osh-native
parse.configure-cpython 31 3 9 12.0 17.4 476,773 1,282 6 406,616 5 203,308 osh-native-souffle
parse.configure-coreutils 151 25 65 44.5 49.7 1,653,361 4,764 12 1,025,548 6 764,317 osh-native
parse.configure-coreutils 135 23 58 44.5 49.4 1,653,360 4,764 12 1,025,538 6 764,312 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,964 180 2 75,052 1 37,526 osh-native
parse.abuild 8 1 1 2.6 8.1 101,964 180 2 75,042 1 37,521 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.1 579,727 22,608 12 50,000 0 2,929 osh-native
ex.compute-fib 21 0 1 2.2 7.7 579,727 22,608 12 50,000 0 2,924 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 11.1 8.9 1,021,044 15,258 22 50,000 0 3,918 osh-native
ex.bashcomp-parse-help 174 0 4 11.1 8.4 1,021,043 15,258 22 50,000 0 3,909 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,362 277 3 85,268 1 42,634 osh-native
ex.abuild-print-help 20 1 2 2.8 8.7 116,362 277 3 85,258 1 42,629 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 22 1 3.0 bash -
99 50 55 3.3 zsh -
17 14 3 28.4 bumpleak/osh mut
19 17 2 29.2 _bin/cxx-opt+bumproot/osh mut
22 14 8 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 12 25.2 osh-native mut+alloc
31 25 6 25.7 osh-native mut+alloc+free
35 29 6 17.8 osh-native mut+alloc+free+gc
36 32 4 18.1 osh-native mut+alloc+free+gc+exit
42 26 15 32.5 _bin/cxx-opt+nopool/osh mut+alloc
47 39 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 14 12 24.9 osh-native-souffle mut+alloc
28 18 10 25.3 osh-native-souffle mut+alloc+free
31 24 8 17.4 osh-native-souffle mut+alloc+free+gc
35 27 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
21 21 0 1.6 dash -
78 77 1 3.1 bash -
364 187 198 3.5 zsh -
49 39 10 84.3 bumpleak/osh mut
61 50 10 85.1 _bin/cxx-opt+bumproot/osh mut
71 59 12 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 71 27 73.5 osh-native mut+alloc
108 74 33 75.4 osh-native mut+alloc+free
151 127 24 49.7 osh-native mut+alloc+free+gc
152 128 24 50.5 osh-native mut+alloc+free+gc+exit
140 91 49 99.0 _bin/cxx-opt+nopool/osh mut+alloc
205 163 42 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 62 26 73.3 osh-native-souffle mut+alloc
96 59 37 75.0 osh-native-souffle mut+alloc+free
135 113 21 49.4 osh-native-souffle mut+alloc+free+gc
141 120 21 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.3 dash -
5 4 1 2.9 bash -
7 4 3 3.3 zsh -
6 4 1 11.7 bumpleak/osh mut
7 4 3 12.1 _bin/cxx-opt+bumproot/osh mut
7 6 1 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 7 1 10.1 osh-native mut+alloc
9 7 1 10.1 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 8 1 8.8 osh-native mut+alloc+free+gc+exit
12 5 6 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 10 1 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 4 4 9.7 osh-native-souffle mut+alloc
8 7 1 9.8 osh-native-souffle mut+alloc+free
8 5 3 8.1 osh-native-souffle mut+alloc+free+gc
8 6 3 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
10 9 1 1.4 dash -
29 28 1 3.0 bash -
23 20 3 3.3 zsh -
18 14 4 31.3 bumpleak/osh mut
26 22 4 31.8 _bin/cxx-opt+bumproot/osh mut
28 21 7 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 27 9 26.5 osh-native mut+alloc
38 28 10 26.7 osh-native mut+alloc+free
28 22 6 8.1 osh-native mut+alloc+free+gc
28 27 1 8.1 osh-native mut+alloc+free+gc+exit
54 39 15 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 35 2 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 8 26.0 osh-native-souffle mut+alloc
30 19 11 26.2 osh-native-souffle mut+alloc+free
21 18 3 7.7 osh-native-souffle mut+alloc+free+gc
21 19 2 7.7 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 67 7 3.0 bash -
168 114 54 56.4 bumpleak/osh mut
182 118 65 56.8 _bin/cxx-opt+bumproot/osh mut
194 147 47 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 146 67 48.9 osh-native mut+alloc
222 156 66 50.8 osh-native mut+alloc+free
182 139 43 8.9 osh-native mut+alloc+free+gc
183 132 51 8.9 osh-native mut+alloc+free+gc+exit
236 159 77 64.7 _bin/cxx-opt+nopool/osh mut+alloc
212 161 52 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 133 71 48.6 osh-native-souffle mut+alloc
210 136 74 50.3 osh-native-souffle mut+alloc+free
174 128 46 8.4 osh-native-souffle mut+alloc+free+gc
175 126 49 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
9 3 6 3.4 dash -
19 11 8 4.5 bash -
18 9 10 3.5 zsh -
17 8 10 11.4 bumpleak/osh mut
19 9 10 12.1 _bin/cxx-opt+bumproot/osh mut
20 11 10 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 5 16 11.1 osh-native mut+alloc
22 11 11 11.4 osh-native mut+alloc+free
22 11 11 9.0 osh-native mut+alloc+free+gc
22 9 14 8.9 osh-native mut+alloc+free+gc+exit
24 11 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 13 12 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 11 10.6 osh-native-souffle mut+alloc
21 11 10 10.6 osh-native-souffle mut+alloc+free
20 12 9 8.7 osh-native-souffle mut+alloc+free+gc
21 11 11 8.7 osh-native-souffle mut+alloc+free+gc+exit