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 34 3 9 12.0 18.0 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 152 24 66 44.5 49.7 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 141 24 65 44.5 49.5 1,653,353 4,764 12 1,025,530 6 764,308 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,957 180 2 75,044 1 37,522 osh-native
parse.abuild 8 1 1 2.6 8.1 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 29 0 1 2.2 8.0 598,325 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 22 0 1 2.2 7.6 598,325 22,608 12 50,000 0 2,922 osh-native-souffle
ex.bashcomp-parse-help 186 0 4 11.1 8.9 1,028,080 15,258 22 50,000 0 3,945 osh-native
ex.bashcomp-parse-help 174 0 4 11.1 8.3 1,028,079 15,258 22 50,000 0 3,938 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,485 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,485 277 3 85,252 1 42,626 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.1 bash -
100 54 52 3.4 zsh -
16 12 4 29.6 bumpleak/osh mut
19 14 5 29.8 _bin/cxx-opt+bumproot/osh mut
23 19 4 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.3 osh-native mut+alloc
31 22 9 25.6 osh-native mut+alloc+free
34 29 5 18.0 osh-native mut+alloc+free+gc
35 31 4 18.1 osh-native mut+alloc+free+gc+exit
42 31 11 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 32 16 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 21 5 24.8 osh-native-souffle mut+alloc
28 17 11 25.3 osh-native-souffle mut+alloc+free
32 25 7 17.6 osh-native-souffle mut+alloc+free+gc
33 25 9 17.8 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 20 1 1.6 dash -
78 75 3 3.3 bash -
361 191 191 3.5 zsh -
48 38 10 85.3 bumpleak/osh mut
61 52 9 85.8 _bin/cxx-opt+bumproot/osh mut
70 55 15 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 65 31 73.4 osh-native mut+alloc
103 70 33 75.4 osh-native mut+alloc+free
152 135 17 49.7 osh-native mut+alloc+free+gc
157 138 19 50.5 osh-native mut+alloc+free+gc+exit
138 92 46 98.9 _bin/cxx-opt+nopool/osh mut+alloc
217 190 27 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 58 29 73.1 osh-native-souffle mut+alloc
95 60 35 75.1 osh-native-souffle mut+alloc+free
141 114 27 49.5 osh-native-souffle mut+alloc+free+gc
145 126 19 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.4 dash -
5 4 1 2.9 bash -
7 5 2 3.3 zsh -
6 2 4 12.0 bumpleak/osh mut
7 5 2 11.6 _bin/cxx-opt+bumproot/osh mut
7 3 4 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 5 10.2 osh-native mut+alloc
8 7 1 10.1 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 6 6 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 6 6 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 5 3 9.8 osh-native-souffle mut+alloc+free
8 5 3 8.1 osh-native-souffle mut+alloc+free+gc
8 6 2 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
10 10 0 1.4 dash -
29 28 1 3.0 bash -
23 16 7 3.3 zsh -
18 13 5 33.6 bumpleak/osh mut
26 22 4 33.5 _bin/cxx-opt+bumproot/osh mut
29 25 4 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 27.3 osh-native mut+alloc
38 32 6 27.3 osh-native mut+alloc+free
29 26 3 8.0 osh-native mut+alloc+free+gc
28 23 5 8.0 osh-native mut+alloc+free+gc+exit
54 41 12 36.9 _bin/cxx-opt+nopool/osh mut+alloc
37 35 2 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.7 osh-native-souffle mut+alloc
32 19 13 26.7 osh-native-souffle mut+alloc+free
22 21 1 7.6 osh-native-souffle mut+alloc+free+gc
22 21 1 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
73 67 6 3.1 bash -
166 96 70 56.5 bumpleak/osh mut
184 127 57 58.3 _bin/cxx-opt+bumproot/osh mut
198 134 64 58.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 142 72 49.2 osh-native mut+alloc
223 155 68 51.0 osh-native mut+alloc+free
186 128 58 8.9 osh-native mut+alloc+free+gc
182 120 63 8.8 osh-native mut+alloc+free+gc+exit
238 161 77 64.9 _bin/cxx-opt+nopool/osh mut+alloc
210 154 56 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 124 81 48.8 osh-native-souffle mut+alloc
211 146 64 50.5 osh-native-souffle mut+alloc+free
174 122 51 8.3 osh-native-souffle mut+alloc+free+gc
175 129 46 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 5 4 3.5 dash -
19 12 7 4.5 bash -
18 9 10 3.4 zsh -
19 7 12 12.4 bumpleak/osh mut
19 6 13 12.6 _bin/cxx-opt+bumproot/osh mut
19 9 11 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 11 10 11.0 osh-native mut+alloc
21 10 11 11.3 osh-native mut+alloc+free
22 12 10 9.2 osh-native mut+alloc+free+gc
22 11 11 9.0 osh-native mut+alloc+free+gc+exit
24 11 13 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 12 13 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 9 11 10.5 osh-native-souffle mut+alloc
20 7 14 10.6 osh-native-souffle mut+alloc+free
21 11 11 8.7 osh-native-souffle mut+alloc+free+gc
22 10 12 8.7 osh-native-souffle mut+alloc+free+gc+exit