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 31 3 9 12.0 18.4 471,269 1,282 6 413,154 5 206,577 osh-native
parse.configure-cpython 33 3 9 12.0 18.7 471,269 1,282 6 413,162 5 206,581 osh-nosouffle
parse.configure-coreutils 145 25 70 45.9 51.7 1,638,008 4,764 12 1,056,652 6 787,847 osh-native
parse.configure-coreutils 146 23 62 45.9 52.3 1,638,007 4,764 12 1,056,660 6 787,851 osh-nosouffle
parse.abuild 9 1 2 2.6 8.7 102,797 180 3 86,640 1 43,320 osh-native
parse.abuild 10 1 2 2.6 9.2 102,797 180 3 86,648 1 43,324 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.4 572,121 22,608 12 50,000 0 2,987 osh-native
ex.compute-fib 25 0 1 2.8 8.8 572,121 22,608 12 50,000 0 2,992 osh-nosouffle
ex.bashcomp-parse-help 222 0 4 11.6 9.0 990,267 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 229 0 4 11.6 9.6 990,266 15,258 21 50,000 0 3,971 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,225 277 3 84,002 1 42,001 osh-native
ex.abuild-print-help 21 1 2 3.0 10.1 117,224 277 3 84,010 1 42,005 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 6 1 1.6 dash -
13 12 1 3.3 bash -
89 56 40 3.5 zsh -
16 11 5 30.6 bumpleak/osh mut
16 10 6 30.6 _bin/cxx-opt+bumproot/osh mut
19 15 4 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 12 13 25.4 osh-native mut+alloc
28 19 8 25.8 osh-native mut+alloc+free
31 25 6 18.4 osh-native mut+alloc+free+gc
32 25 7 18.4 osh-native mut+alloc+free+gc+exit
28 22 6 26.0 osh-nosouffle mut+alloc
30 20 11 26.3 osh-nosouffle mut+alloc+free
33 26 7 18.7 osh-nosouffle mut+alloc+free+gc
35 28 7 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 27 13 33.0 _bin/cxx-opt+nopool/osh mut+alloc
44 32 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 21 2 1.6 dash -
42 41 1 3.5 bash -
330 185 169 3.7 zsh -
46 37 9 86.0 bumpleak/osh mut
48 41 7 85.0 _bin/cxx-opt+bumproot/osh mut
59 45 14 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 47 37 73.7 osh-native mut+alloc
92 47 45 75.6 osh-native mut+alloc+free
145 126 20 51.7 osh-native mut+alloc+free+gc
143 116 27 52.4 osh-native mut+alloc+free+gc+exit
95 63 32 74.1 osh-nosouffle mut+alloc
101 70 31 76.2 osh-nosouffle mut+alloc+free
146 116 30 52.3 osh-nosouffle mut+alloc+free+gc
152 118 34 52.9 osh-nosouffle mut+alloc+free+gc+exit
127 68 59 99.3 _bin/cxx-opt+nopool/osh mut+alloc
203 177 26 71.7 _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 1 1 1.6 dash -
4 2 2 3.1 bash -
6 2 4 3.4 zsh -
6 4 3 12.3 bumpleak/osh mut
6 4 3 11.9 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.6 osh-native mut+alloc
8 4 4 10.7 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
9 5 3 10.9 osh-nosouffle mut+alloc
9 6 3 11.1 osh-nosouffle mut+alloc+free
10 6 3 9.2 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 5 6 12.0 _bin/cxx-opt+nopool/osh mut+alloc
12 6 6 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
10 9 1 1.4 dash -
31 30 1 3.4 bash -
21 14 7 3.4 zsh -
17 15 2 33.1 bumpleak/osh mut
18 15 3 32.4 _bin/cxx-opt+bumproot/osh mut
21 15 6 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 8 26.7 osh-native mut+alloc
30 14 16 27.0 osh-native mut+alloc+free
20 18 2 8.4 osh-native mut+alloc+free+gc
20 18 2 8.3 osh-native mut+alloc+free+gc+exit
33 27 6 27.4 osh-nosouffle mut+alloc
36 26 9 27.6 osh-nosouffle mut+alloc+free
25 23 2 8.8 osh-nosouffle mut+alloc+free+gc
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc+exit
45 23 22 36.6 _bin/cxx-opt+nopool/osh mut+alloc
30 25 4 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
103 102 1 3.4 bash -
212 152 60 56.1 bumpleak/osh mut
221 167 54 56.6 _bin/cxx-opt+bumproot/osh mut
241 189 52 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
257 191 66 48.8 osh-native mut+alloc
264 195 69 50.9 osh-native mut+alloc+free
222 168 54 9.0 osh-native mut+alloc+free+gc
220 181 39 9.2 osh-native mut+alloc+free+gc+exit
263 194 69 49.2 osh-nosouffle mut+alloc
267 196 71 51.3 osh-nosouffle mut+alloc+free
229 180 49 9.6 osh-nosouffle mut+alloc+free+gc
226 179 47 9.7 osh-nosouffle mut+alloc+free+gc+exit
276 198 78 64.4 _bin/cxx-opt+nopool/osh mut+alloc
250 186 63 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
9 5 4 3.9 dash -
16 8 8 4.7 bash -
16 11 5 4.2 zsh -
17 8 10 12.5 bumpleak/osh mut
19 8 11 13.6 _bin/cxx-opt+bumproot/osh mut
20 10 11 14.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 10 10 11.5 osh-native mut+alloc
21 11 11 11.7 osh-native mut+alloc+free
20 10 11 9.4 osh-native mut+alloc+free+gc
21 10 11 9.6 osh-native mut+alloc+free+gc+exit
20 6 15 12.1 osh-nosouffle mut+alloc
22 7 15 12.3 osh-nosouffle mut+alloc+free
21 13 9 10.1 osh-nosouffle mut+alloc+free+gc
22 11 11 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 12 11 12.9 _bin/cxx-opt+nopool/osh mut+alloc
23 10 13 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc