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 33 4 10 12.0 17.8 476,773 1,282 6 406,616 5 203,308 osh-native-souffle
parse.configure-coreutils 149 24 62 44.5 49.8 1,653,361 4,764 12 1,025,548 6 764,317 osh-native
parse.configure-coreutils 140 25 64 44.5 49.5 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 9 1 1 2.6 8.3 101,964 180 2 75,042 1 37,521 osh-native-souffle
ex.compute-fib 28 0 2 2.2 8.0 579,727 22,608 12 50,000 0 2,929 osh-native
ex.compute-fib 22 0 2 2.2 7.6 579,727 22,608 12 50,000 0 2,924 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 11.1 8.8 1,021,044 15,258 22 50,000 0 3,918 osh-native
ex.bashcomp-parse-help 178 0 4 11.1 8.5 1,021,043 15,258 22 50,000 0 3,909 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.3 116,362 277 3 85,268 1 42,634 osh-native
ex.abuild-print-help 22 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 5 1 1.6 dash -
23 21 2 3.0 bash -
100 55 52 3.4 zsh -
16 12 4 29.2 bumpleak/osh mut
20 16 4 29.9 _bin/cxx-opt+bumproot/osh mut
22 16 6 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 11 25.4 osh-native mut+alloc
31 20 11 25.7 osh-native mut+alloc+free
35 30 5 17.8 osh-native mut+alloc+free+gc
36 25 10 18.2 osh-native mut+alloc+free+gc+exit
42 32 10 32.5 _bin/cxx-opt+nopool/osh mut+alloc
48 41 7 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 11 24.9 osh-native-souffle mut+alloc
28 17 12 25.4 osh-native-souffle mut+alloc+free
33 28 5 17.8 osh-native-souffle mut+alloc+free+gc
34 28 6 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.4 dash -
77 75 2 3.3 bash -
361 202 181 3.5 zsh -
49 44 5 85.7 bumpleak/osh mut
61 52 9 86.5 _bin/cxx-opt+bumproot/osh mut
70 51 19 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 66 31 73.5 osh-native mut+alloc
103 75 27 75.4 osh-native mut+alloc+free
149 122 27 49.8 osh-native mut+alloc+free+gc
150 129 21 50.7 osh-native mut+alloc+free+gc+exit
140 88 53 98.9 _bin/cxx-opt+nopool/osh mut+alloc
211 180 31 66.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 58 28 73.2 osh-native-souffle mut+alloc
94 59 35 75.0 osh-native-souffle mut+alloc+free
140 118 22 49.5 osh-native-souffle mut+alloc+free+gc
145 120 25 50.1 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 1 1 1.3 dash -
5 4 1 3.0 bash -
7 3 4 3.3 zsh -
6 3 3 11.3 bumpleak/osh mut
7 4 3 11.1 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.1 osh-native mut+alloc
9 7 2 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
10 8 2 8.5 osh-native mut+alloc+free+gc+exit
12 7 5 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
10 4 6 9.8 osh-native-souffle mut+alloc+free
9 5 4 8.3 osh-native-souffle mut+alloc+free+gc
9 5 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
10 10 0 1.4 dash -
29 28 1 3.0 bash -
23 20 3 3.3 zsh -
19 14 4 31.9 bumpleak/osh mut
26 20 6 32.6 _bin/cxx-opt+bumproot/osh mut
28 27 1 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 13 26.3 osh-native mut+alloc
38 24 14 26.5 osh-native mut+alloc+free
28 26 2 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 33 21 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 8 26.1 osh-native-souffle mut+alloc
31 23 8 26.3 osh-native-souffle mut+alloc+free
22 20 2 7.6 osh-native-souffle mut+alloc+free+gc
22 20 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
73 67 5 3.0 bash -
166 108 58 56.4 bumpleak/osh mut
181 131 50 57.4 _bin/cxx-opt+bumproot/osh mut
197 142 55 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 142 72 48.7 osh-native mut+alloc
224 158 66 50.8 osh-native mut+alloc+free
184 134 50 8.8 osh-native mut+alloc+free+gc
183 120 63 8.9 osh-native mut+alloc+free+gc+exit
238 173 65 64.5 _bin/cxx-opt+nopool/osh mut+alloc
213 159 54 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 138 69 48.5 osh-native-souffle mut+alloc
213 138 74 50.3 osh-native-souffle mut+alloc+free
178 118 60 8.5 osh-native-souffle mut+alloc+free+gc
175 118 57 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 3 7 3.5 dash -
19 9 11 4.5 bash -
17 7 11 3.4 zsh -
20 11 9 12.9 bumpleak/osh mut
19 8 12 11.8 _bin/cxx-opt+bumproot/osh mut
20 8 13 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 13 11.0 osh-native mut+alloc
22 12 11 11.3 osh-native mut+alloc+free
22 13 10 9.3 osh-native mut+alloc+free+gc
23 11 13 9.3 osh-native mut+alloc+free+gc+exit
25 12 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 12 14 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 11 10.6 osh-native-souffle mut+alloc
21 6 16 10.9 osh-native-souffle mut+alloc+free
22 13 9 8.7 osh-native-souffle mut+alloc+free+gc
22 13 10 8.5 osh-native-souffle mut+alloc+free+gc+exit