Memory Management Overhead

Source code: oils/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 32 4 10 12.0 18.2 471,276 1,282 6 413,160 5 206,580 osh-native
parse.configure-cpython 34 3 9 12.0 18.7 471,276 1,282 6 413,168 5 206,584 osh-nosouffle
parse.configure-coreutils 134 23 60 45.9 51.9 1,638,015 4,764 12 1,056,658 6 787,850 osh-native
parse.configure-coreutils 146 26 62 45.9 52.1 1,638,014 4,764 12 1,056,666 6 787,854 osh-nosouffle
parse.abuild 9 1 2 2.6 8.7 102,804 180 3 86,646 1 43,323 osh-native
parse.abuild 10 1 2 2.6 9.0 102,804 180 3 86,654 1 43,327 osh-nosouffle
ex.compute-fib 26 0 2 2.8 8.3 572,128 22,608 12 50,000 0 2,991 osh-native
ex.compute-fib 25 0 2 2.8 8.7 572,128 22,608 12 50,000 0 2,995 osh-nosouffle
ex.bashcomp-parse-help 222 0 3 11.6 9.2 990,274 15,258 21 50,000 0 3,968 osh-native
ex.bashcomp-parse-help 230 0 4 11.6 9.6 990,273 15,258 21 50,000 0 3,974 osh-nosouffle
ex.abuild-print-help 23 1 2 3.0 9.6 117,259 277 3 84,008 1 42,004 osh-native
ex.abuild-print-help 23 1 2 3.0 10.0 117,258 277 3 84,016 1 42,008 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 0 1.7 dash -
13 12 1 3.3 bash -
91 54 44 3.5 zsh -
15 11 4 29.9 bumpleak/osh mut
17 13 4 30.7 _bin/cxx-opt+bumproot/osh mut
19 12 7 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 19 7 25.3 osh-native mut+alloc
28 18 10 25.7 osh-native mut+alloc+free
32 24 8 18.2 osh-native mut+alloc+free+gc
32 26 6 18.2 osh-native mut+alloc+free+gc+exit
28 19 9 26.0 osh-nosouffle mut+alloc
30 17 13 26.2 osh-nosouffle mut+alloc+free
34 24 10 18.7 osh-nosouffle mut+alloc+free+gc
37 31 6 18.7 osh-nosouffle mut+alloc+free+gc+exit
40 29 11 33.3 _bin/cxx-opt+nopool/osh mut+alloc
45 36 9 22.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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
23 23 0 1.7 dash -
42 41 1 3.4 bash -
337 196 166 3.7 zsh -
46 36 10 85.6 bumpleak/osh mut
49 40 9 85.2 _bin/cxx-opt+bumproot/osh mut
59 46 14 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 55 28 73.8 osh-native mut+alloc
92 69 23 75.5 osh-native mut+alloc+free
134 112 22 51.9 osh-native mut+alloc+free+gc
140 117 23 52.5 osh-native mut+alloc+free+gc+exit
92 58 34 74.2 osh-nosouffle mut+alloc
102 66 36 75.9 osh-nosouffle mut+alloc+free
146 118 28 52.1 osh-nosouffle mut+alloc+free+gc
153 130 23 52.9 osh-nosouffle mut+alloc+free+gc+exit
123 84 39 99.4 _bin/cxx-opt+nopool/osh mut+alloc
186 155 31 72.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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.7 dash -
4 4 0 3.1 bash -
7 5 2 3.4 zsh -
6 3 3 12.6 bumpleak/osh mut
6 5 1 11.3 _bin/cxx-opt+bumproot/osh mut
7 3 3 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 2 5 10.5 osh-native mut+alloc
8 3 5 10.7 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 6 3 8.9 osh-native mut+alloc+free+gc+exit
9 5 4 10.9 osh-nosouffle mut+alloc
9 4 5 11.0 osh-nosouffle mut+alloc+free
10 7 2 9.0 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 3 8 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.compute-fib

A synthetic benchmark for POSIX shell arithmetic.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
9 9 0 1.6 dash -
31 31 0 3.3 bash -
22 15 7 3.3 zsh -
18 12 6 32.8 bumpleak/osh mut
19 14 5 32.7 _bin/cxx-opt+bumproot/osh mut
22 14 8 33.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
40 25 15 26.7 osh-native mut+alloc
34 24 10 27.1 osh-native mut+alloc+free
26 24 2 8.3 osh-native mut+alloc+free+gc
20 17 3 8.1 osh-native mut+alloc+free+gc+exit
34 19 15 27.3 osh-nosouffle mut+alloc
37 27 10 27.7 osh-nosouffle mut+alloc+free
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc
26 23 3 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 27 19 36.4 _bin/cxx-opt+nopool/osh mut+alloc
30 28 2 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
103 98 5 3.5 bash -
213 168 45 57.1 bumpleak/osh mut
222 182 40 57.0 _bin/cxx-opt+bumproot/osh mut
241 194 47 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
255 192 63 48.8 osh-native mut+alloc
262 194 68 50.7 osh-native mut+alloc+free
222 177 45 9.2 osh-native mut+alloc+free+gc
223 181 42 9.0 osh-native mut+alloc+free+gc+exit
264 190 74 49.6 osh-nosouffle mut+alloc
273 191 82 51.3 osh-nosouffle mut+alloc+free
230 185 45 9.6 osh-nosouffle mut+alloc+free+gc
231 179 52 9.7 osh-nosouffle mut+alloc+free+gc+exit
276 204 72 64.1 _bin/cxx-opt+nopool/osh mut+alloc
250 200 50 10.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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 4 6 3.8 dash -
16 8 9 4.8 bash -
16 10 7 3.9 zsh -
19 8 11 13.9 bumpleak/osh mut
20 11 10 13.0 _bin/cxx-opt+bumproot/osh mut
20 9 11 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 13 11.7 osh-native mut+alloc
22 8 15 11.7 osh-native mut+alloc+free
23 12 12 9.6 osh-native mut+alloc+free+gc
23 10 14 9.4 osh-native mut+alloc+free+gc+exit
22 8 14 12.2 osh-nosouffle mut+alloc
23 14 10 12.3 osh-nosouffle mut+alloc+free
23 13 11 10.0 osh-nosouffle mut+alloc+free+gc
24 14 11 10.1 osh-nosouffle mut+alloc+free+gc+exit
24 10 15 13.1 _bin/cxx-opt+nopool/osh mut+alloc
26 16 10 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc