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 35 4 11 12.0 18.2 471,266 1,282 6 413,148 5 206,574 osh-native
parse.configure-cpython 34 4 10 12.0 18.9 471,266 1,282 6 413,156 5 206,578 osh-nosouffle
parse.configure-coreutils 154 29 78 45.9 51.6 1,638,005 4,764 12 1,056,646 6 787,844 osh-native
parse.configure-coreutils 162 27 78 45.9 52.3 1,638,004 4,764 12 1,056,654 6 787,848 osh-nosouffle
parse.abuild 9 1 2 2.6 8.8 102,794 180 3 86,634 1 43,317 osh-native
parse.abuild 10 1 2 2.6 9.2 102,794 180 3 86,642 1 43,321 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.3 572,118 22,608 12 50,000 0 2,984 osh-native
ex.compute-fib 25 0 2 2.8 8.8 572,118 22,608 12 50,000 0 2,989 osh-nosouffle
ex.bashcomp-parse-help 221 0 4 11.6 9.0 990,264 15,258 21 50,000 0 3,966 osh-native
ex.bashcomp-parse-help 228 0 4 11.6 9.8 990,263 15,258 21 50,000 0 3,968 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.6 117,222 277 3 83,996 1 41,998 osh-native
ex.abuild-print-help 21 1 2 3.0 10.1 117,221 277 3 84,004 1 42,002 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 5 2 1.6 dash -
13 10 3 3.4 bash -
89 54 42 3.5 zsh -
15 12 3 30.1 bumpleak/osh mut
17 13 4 30.4 _bin/cxx-opt+bumproot/osh mut
19 13 6 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 14 12 25.4 osh-native mut+alloc
28 14 14 26.1 osh-native mut+alloc+free
35 26 9 18.2 osh-native mut+alloc+free+gc
33 30 3 18.2 osh-native mut+alloc+free+gc+exit
29 23 6 26.0 osh-nosouffle mut+alloc
31 19 12 26.3 osh-nosouffle mut+alloc+free
34 25 10 18.9 osh-nosouffle mut+alloc+free+gc
35 30 5 18.9 osh-nosouffle mut+alloc+free+gc+exit
40 23 17 32.3 _bin/cxx-opt+nopool/osh mut+alloc
47 35 12 22.6 _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 22 1 1.7 dash -
42 41 1 3.5 bash -
324 182 164 3.7 zsh -
46 36 10 85.9 bumpleak/osh mut
49 39 10 85.6 _bin/cxx-opt+bumproot/osh mut
58 43 15 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
85 53 32 73.5 osh-native mut+alloc
92 65 27 75.6 osh-native mut+alloc+free
154 127 27 51.6 osh-native mut+alloc+free+gc
168 142 25 52.4 osh-native mut+alloc+free+gc+exit
94 61 33 74.2 osh-nosouffle mut+alloc
104 73 31 75.8 osh-nosouffle mut+alloc+free
162 143 19 52.3 osh-nosouffle mut+alloc+free+gc
162 139 23 52.9 osh-nosouffle mut+alloc+free+gc+exit
129 76 53 99.0 _bin/cxx-opt+nopool/osh mut+alloc
208 172 36 73.0 _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.6 dash -
4 2 1 3.1 bash -
6 6 1 3.3 zsh -
6 6 0 12.7 bumpleak/osh mut
6 3 4 11.7 _bin/cxx-opt+bumproot/osh mut
7 3 4 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.6 osh-native mut+alloc
8 4 5 10.7 osh-native mut+alloc+free
9 7 2 8.8 osh-native mut+alloc+free+gc
9 7 2 8.8 osh-native mut+alloc+free+gc+exit
9 6 3 11.0 osh-nosouffle mut+alloc
9 5 4 11.1 osh-nosouffle mut+alloc+free
10 8 2 9.2 osh-nosouffle mut+alloc+free+gc
10 7 3 9.2 osh-nosouffle mut+alloc+free+gc+exit
12 6 5 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.4 _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
10 10 0 1.6 dash -
30 29 1 3.1 bash -
21 17 4 3.4 zsh -
16 10 6 32.0 bumpleak/osh mut
19 10 9 33.6 _bin/cxx-opt+bumproot/osh mut
21 15 6 34.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 17 12 26.7 osh-native mut+alloc
31 18 13 27.1 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
20 20 0 8.3 osh-native mut+alloc+free+gc+exit
33 23 10 27.4 osh-nosouffle mut+alloc
35 22 13 27.7 osh-nosouffle mut+alloc+free
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc
25 24 1 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 31 15 36.1 _bin/cxx-opt+nopool/osh mut+alloc
29 26 3 9.7 _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
102 94 8 3.5 bash -
215 166 49 57.1 bumpleak/osh mut
221 167 54 56.3 _bin/cxx-opt+bumproot/osh mut
241 192 49 58.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
257 200 57 48.7 osh-native mut+alloc
264 200 64 50.7 osh-native mut+alloc+free
221 168 53 9.0 osh-native mut+alloc+free+gc
222 174 48 9.0 osh-native mut+alloc+free+gc+exit
263 196 68 49.3 osh-nosouffle mut+alloc
270 193 77 51.4 osh-nosouffle mut+alloc+free
228 166 62 9.8 osh-nosouffle mut+alloc+free+gc
228 180 48 9.7 osh-nosouffle mut+alloc+free+gc+exit
280 206 74 65.1 _bin/cxx-opt+nopool/osh mut+alloc
252 200 52 10.7 _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
9 5 5 3.9 dash -
16 10 6 4.8 bash -
16 5 11 3.9 zsh -
17 6 12 14.1 bumpleak/osh mut
18 7 11 13.0 _bin/cxx-opt+bumproot/osh mut
19 7 12 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 11 9 11.7 osh-native mut+alloc
21 9 12 11.7 osh-native mut+alloc+free
20 14 7 9.6 osh-native mut+alloc+free+gc
21 10 11 9.7 osh-native mut+alloc+free+gc+exit
21 14 8 12.2 osh-nosouffle mut+alloc
22 9 13 12.2 osh-nosouffle mut+alloc+free
21 8 14 10.1 osh-nosouffle mut+alloc+free+gc
22 10 12 10.0 osh-nosouffle mut+alloc+free+gc+exit
23 9 15 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 10 14 10.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc