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.5 471,269 1,282 6 413,154 5 206,577 osh-native
parse.configure-cpython 35 4 10 12.0 18.6 471,269 1,282 6 413,162 5 206,581 osh-nosouffle
parse.configure-coreutils 141 26 67 45.9 51.7 1,638,008 4,764 12 1,056,652 6 787,847 osh-native
parse.configure-coreutils 164 42 81 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.8 102,797 180 3 86,640 1 43,320 osh-native
parse.abuild 10 1 2 2.6 9.0 102,797 180 3 86,648 1 43,324 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.4 572,121 22,608 12 50,000 0 2,987 osh-native
ex.compute-fib 25 0 2 2.8 8.5 572,121 22,608 12 50,000 0 2,992 osh-nosouffle
ex.bashcomp-parse-help 221 0 4 11.6 9.0 990,267 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 230 0 4 11.6 9.4 990,266 15,258 21 50,000 0 3,971 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.2 117,228 277 3 84,002 1 42,001 osh-native
ex.abuild-print-help 21 1 2 3.0 10.0 117,227 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.7 dash -
13 11 2 3.3 bash -
91 56 42 3.5 zsh -
16 14 2 29.2 bumpleak/osh mut
16 14 2 29.5 _bin/cxx-opt+bumproot/osh mut
19 12 7 30.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 15 11 25.6 osh-native mut+alloc
28 21 7 25.8 osh-native mut+alloc+free
31 24 7 18.5 osh-native mut+alloc+free+gc
32 23 9 18.4 osh-native mut+alloc+free+gc+exit
28 18 10 26.0 osh-nosouffle mut+alloc
30 19 11 26.2 osh-nosouffle mut+alloc+free
35 29 6 18.6 osh-nosouffle mut+alloc+free+gc
36 33 3 18.6 osh-nosouffle mut+alloc+free+gc+exit
38 23 15 32.3 _bin/cxx-opt+nopool/osh mut+alloc
47 33 14 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 23 0 1.7 dash -
42 40 2 3.5 bash -
324 197 148 3.7 zsh -
49 37 12 85.6 bumpleak/osh mut
51 40 11 85.6 _bin/cxx-opt+bumproot/osh mut
63 47 16 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
86 47 39 73.7 osh-native mut+alloc
96 60 36 75.4 osh-native mut+alloc+free
141 127 14 51.7 osh-native mut+alloc+free+gc
145 126 19 52.5 osh-native mut+alloc+free+gc+exit
91 61 30 74.2 osh-nosouffle mut+alloc
101 67 34 76.0 osh-nosouffle mut+alloc+free
164 138 26 52.3 osh-nosouffle mut+alloc+free+gc
155 129 26 52.8 osh-nosouffle mut+alloc+free+gc+exit
129 75 53 98.8 _bin/cxx-opt+nopool/osh mut+alloc
213 178 35 73.5 _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 4 3 3.3 zsh -
6 6 0 12.8 bumpleak/osh mut
7 3 3 12.1 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.5 osh-native mut+alloc
8 5 4 10.5 osh-native mut+alloc+free
9 7 2 8.8 osh-native mut+alloc+free+gc
9 6 3 8.9 osh-native mut+alloc+free+gc+exit
9 7 2 11.0 osh-nosouffle mut+alloc
9 5 4 11.1 osh-nosouffle mut+alloc+free
10 6 4 9.0 osh-nosouffle mut+alloc+free+gc
10 9 1 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 8 4 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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 30 1 3.3 bash -
21 16 5 3.4 zsh -
18 15 3 32.8 bumpleak/osh mut
19 14 5 31.8 _bin/cxx-opt+bumproot/osh mut
22 16 7 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 15 14 26.9 osh-native mut+alloc
30 23 7 27.0 osh-native mut+alloc+free
20 16 4 8.4 osh-native mut+alloc+free+gc
20 16 4 8.3 osh-native mut+alloc+free+gc+exit
33 20 13 27.4 osh-nosouffle mut+alloc
35 24 12 27.5 osh-nosouffle mut+alloc+free
25 22 3 8.5 osh-nosouffle mut+alloc+free+gc
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 30 16 36.8 _bin/cxx-opt+nopool/osh mut+alloc
30 24 6 9.8 _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
104 100 4 3.4 bash -
213 163 49 57.3 bumpleak/osh mut
222 156 66 57.3 _bin/cxx-opt+bumproot/osh mut
241 179 61 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
260 189 71 48.8 osh-native mut+alloc
268 198 70 50.7 osh-native mut+alloc+free
221 181 40 9.0 osh-native mut+alloc+free+gc
224 177 47 9.2 osh-native mut+alloc+free+gc+exit
261 187 74 49.4 osh-nosouffle mut+alloc
274 202 72 51.3 osh-nosouffle mut+alloc+free
230 183 47 9.4 osh-nosouffle mut+alloc+free+gc
228 181 46 9.7 osh-nosouffle mut+alloc+free+gc+exit
280 202 78 65.7 _bin/cxx-opt+nopool/osh mut+alloc
252 193 59 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 6 3 3.9 dash -
16 10 7 4.8 bash -
16 5 11 3.9 zsh -
19 6 13 13.2 bumpleak/osh mut
18 8 10 14.2 _bin/cxx-opt+bumproot/osh mut
20 9 11 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 11 10 11.7 osh-native mut+alloc
21 6 15 11.7 osh-native mut+alloc+free
21 10 12 9.2 osh-native mut+alloc+free+gc
21 12 10 9.6 osh-native mut+alloc+free+gc+exit
20 7 14 12.1 osh-nosouffle mut+alloc
21 11 11 12.3 osh-nosouffle mut+alloc+free
21 11 11 10.0 osh-nosouffle mut+alloc+free+gc
22 15 8 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 11 13 13.0 _bin/cxx-opt+nopool/osh mut+alloc
24 16 9 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc