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 36 4 10 12.0 18.1 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 161 27 76 44.5 49.7 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 145 25 69 44.5 49.4 1,653,353 4,764 12 1,025,530 6 764,308 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,957 180 2 75,044 1 37,522 osh-native
parse.abuild 9 1 1 2.6 8.3 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 28 0 2 2.2 8.0 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 22 0 1 2.2 7.6 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 185 0 4 11.1 8.9 1,021,036 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 175 0 4 11.1 8.4 1,021,035 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,340 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,340 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 21 2 3.0 bash -
99 51 55 3.4 zsh -
17 11 6 28.2 bumpleak/osh mut
19 14 5 29.7 _bin/cxx-opt+bumproot/osh mut
23 17 6 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 12 25.4 osh-native mut+alloc
31 22 9 25.7 osh-native mut+alloc+free
36 29 7 18.1 osh-native mut+alloc+free+gc
37 29 8 18.1 osh-native mut+alloc+free+gc+exit
42 29 13 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 36 12 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 20 7 24.9 osh-native-souffle mut+alloc
29 23 6 25.3 osh-native-souffle mut+alloc+free
32 25 7 17.4 osh-native-souffle mut+alloc+free+gc
33 27 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 19 2 1.6 dash -
78 75 3 3.1 bash -
366 201 185 3.5 zsh -
49 37 12 84.9 bumpleak/osh mut
60 54 6 85.6 _bin/cxx-opt+bumproot/osh mut
71 61 10 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 67 30 73.4 osh-native mut+alloc
110 81 29 75.4 osh-native mut+alloc+free
161 144 17 49.7 osh-native mut+alloc+free+gc
183 164 19 50.5 osh-native mut+alloc+free+gc+exit
141 90 51 98.8 _bin/cxx-opt+nopool/osh mut+alloc
235 202 32 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 56 31 73.3 osh-native-souffle mut+alloc
96 58 38 75.2 osh-native-souffle mut+alloc+free
145 122 23 49.4 osh-native-souffle mut+alloc+free+gc
155 134 21 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 2 0 1.4 dash -
5 4 2 3.0 bash -
7 4 3 3.3 zsh -
6 3 4 11.3 bumpleak/osh mut
7 5 2 10.9 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 3 10.0 osh-native mut+alloc
9 5 4 10.2 osh-native mut+alloc+free
9 5 4 8.7 osh-native mut+alloc+free+gc
9 7 2 8.8 osh-native mut+alloc+free+gc+exit
12 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 3 5 9.7 osh-native-souffle mut+alloc
8 5 3 9.7 osh-native-souffle mut+alloc+free
9 5 4 8.3 osh-native-souffle mut+alloc+free+gc
9 6 2 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 26 3 2.9 bash -
23 18 5 3.3 zsh -
18 15 3 31.4 bumpleak/osh mut
26 22 4 31.8 _bin/cxx-opt+bumproot/osh mut
28 23 5 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.3 osh-native mut+alloc
38 26 12 26.6 osh-native mut+alloc+free
28 26 2 8.0 osh-native mut+alloc+free+gc
28 25 3 8.0 osh-native mut+alloc+free+gc+exit
53 34 19 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 33 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 8 26.0 osh-native-souffle mut+alloc
31 19 13 26.3 osh-native-souffle mut+alloc+free
22 21 1 7.6 osh-native-souffle mut+alloc+free+gc
22 21 1 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
73 64 9 3.1 bash -
169 115 54 56.9 bumpleak/osh mut
181 136 45 58.1 _bin/cxx-opt+bumproot/osh mut
196 136 60 58.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 139 73 49.0 osh-native mut+alloc
223 158 64 50.8 osh-native mut+alloc+free
185 142 43 8.9 osh-native mut+alloc+free+gc
182 129 53 8.8 osh-native mut+alloc+free+gc+exit
236 155 81 64.7 _bin/cxx-opt+nopool/osh mut+alloc
212 167 45 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 144 63 48.6 osh-native-souffle mut+alloc
211 141 70 50.3 osh-native-souffle mut+alloc+free
175 137 38 8.4 osh-native-souffle mut+alloc+free+gc
176 124 52 8.5 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 7 3.5 dash -
20 10 10 4.3 bash -
17 5 13 3.4 zsh -
19 8 11 12.2 bumpleak/osh mut
20 9 12 12.7 _bin/cxx-opt+bumproot/osh mut
21 11 11 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 12 11.1 osh-native mut+alloc
22 11 12 11.1 osh-native mut+alloc+free
22 10 13 9.2 osh-native mut+alloc+free+gc
23 14 10 9.2 osh-native mut+alloc+free+gc+exit
24 10 15 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 13 13 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 11 10.6 osh-native-souffle mut+alloc
22 12 11 10.9 osh-native-souffle mut+alloc+free
21 12 10 8.5 osh-native-souffle mut+alloc+free+gc
22 7 15 8.7 osh-native-souffle mut+alloc+free+gc+exit