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 5 12 12.0 18.2 471,276 1,282 6 413,160 5 206,580 osh-native
parse.configure-cpython 38 4 12 12.0 18.7 471,276 1,282 6 413,168 5 206,584 osh-nosouffle
parse.configure-coreutils 160 31 84 45.9 51.6 1,638,015 4,764 12 1,056,658 6 787,850 osh-native
parse.configure-coreutils 166 27 81 45.9 52.1 1,638,014 4,764 12 1,056,666 6 787,854 osh-nosouffle
parse.abuild 10 1 3 2.6 8.7 102,804 180 3 86,646 1 43,323 osh-native
parse.abuild 11 1 2 2.6 9.2 102,804 180 3 86,654 1 43,327 osh-nosouffle
ex.compute-fib 21 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 225 0 5 11.6 9.0 990,274 15,258 21 50,000 0 3,968 osh-native
ex.bashcomp-parse-help 235 0 5 11.6 9.6 990,273 15,258 21 50,000 0 3,974 osh-nosouffle
ex.abuild-print-help 22 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
7 7 0 1.6 dash -
14 13 1 3.3 bash -
92 50 49 3.7 zsh -
18 12 6 30.3 bumpleak/osh mut
17 10 7 30.6 _bin/cxx-opt+bumproot/osh mut
21 18 3 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 17 9 25.3 osh-native mut+alloc
28 14 14 25.8 osh-native mut+alloc+free
35 29 6 18.2 osh-native mut+alloc+free+gc
36 29 7 18.4 osh-native mut+alloc+free+gc+exit
30 20 10 25.8 osh-nosouffle mut+alloc
32 18 13 26.2 osh-nosouffle mut+alloc+free
38 30 8 18.7 osh-nosouffle mut+alloc+free+gc
38 30 8 18.7 osh-nosouffle mut+alloc+free+gc+exit
40 23 17 33.2 _bin/cxx-opt+nopool/osh mut+alloc
53 40 13 22.7 _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 40 2 3.4 bash -
337 188 173 3.7 zsh -
46 38 7 86.5 bumpleak/osh mut
49 37 12 85.9 _bin/cxx-opt+bumproot/osh mut
59 47 12 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 50 34 73.7 osh-native mut+alloc
93 62 30 75.6 osh-native mut+alloc+free
160 139 21 51.6 osh-native mut+alloc+free+gc
170 144 26 52.5 osh-native mut+alloc+free+gc+exit
92 54 38 74.1 osh-nosouffle mut+alloc
101 68 32 75.8 osh-nosouffle mut+alloc+free
166 143 23 52.1 osh-nosouffle mut+alloc+free+gc
180 158 22 53.0 osh-nosouffle mut+alloc+free+gc+exit
128 72 56 98.7 _bin/cxx-opt+nopool/osh mut+alloc
232 189 43 71.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.7 dash -
4 4 0 3.3 bash -
7 0 6 3.3 zsh -
7 2 5 12.3 bumpleak/osh mut
6 3 3 13.2 _bin/cxx-opt+bumproot/osh mut
9 6 2 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 5 10.5 osh-native mut+alloc
9 5 3 10.7 osh-native mut+alloc+free
10 8 2 8.7 osh-native mut+alloc+free+gc
10 8 2 8.8 osh-native mut+alloc+free+gc+exit
9 5 4 11.0 osh-nosouffle mut+alloc
10 5 5 11.1 osh-nosouffle mut+alloc+free
11 9 2 9.2 osh-nosouffle mut+alloc+free+gc
11 8 3 9.6 osh-nosouffle mut+alloc+free+gc+exit
12 6 6 12.0 _bin/cxx-opt+nopool/osh mut+alloc
13 9 4 9.7 _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.7 dash -
31 30 1 3.3 bash -
22 15 7 3.4 zsh -
17 13 4 32.2 bumpleak/osh mut
18 14 4 31.8 _bin/cxx-opt+bumproot/osh mut
22 16 6 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 16 13 26.9 osh-native mut+alloc
32 19 13 27.1 osh-native mut+alloc+free
21 18 3 8.3 osh-native mut+alloc+free+gc
21 19 2 8.3 osh-native mut+alloc+free+gc+exit
34 21 13 27.4 osh-nosouffle mut+alloc
36 25 11 27.5 osh-nosouffle mut+alloc+free
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc+exit
48 25 22 36.2 _bin/cxx-opt+nopool/osh mut+alloc
31 28 3 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
107 98 9 3.5 bash -
213 150 64 57.9 bumpleak/osh mut
224 171 53 57.2 _bin/cxx-opt+bumproot/osh mut
243 182 61 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
261 197 63 48.9 osh-native mut+alloc
270 201 69 50.7 osh-native mut+alloc+free
225 171 54 9.0 osh-native mut+alloc+free+gc
227 184 43 9.0 osh-native mut+alloc+free+gc+exit
267 202 65 49.3 osh-nosouffle mut+alloc
279 202 77 51.3 osh-nosouffle mut+alloc+free
235 190 45 9.6 osh-nosouffle mut+alloc+free+gc
237 184 53 9.6 osh-nosouffle mut+alloc+free+gc+exit
282 212 70 64.9 _bin/cxx-opt+nopool/osh mut+alloc
262 207 55 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 4 5 4.1 dash -
16 10 7 4.8 bash -
16 8 9 4.1 zsh -
19 9 10 13.3 bumpleak/osh mut
20 11 9 13.4 _bin/cxx-opt+bumproot/osh mut
20 11 10 13.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 7 14 11.5 osh-native mut+alloc
22 10 12 11.8 osh-native mut+alloc+free
22 10 12 9.6 osh-native mut+alloc+free+gc
22 15 9 9.6 osh-native mut+alloc+free+gc+exit
22 9 14 12.1 osh-nosouffle mut+alloc
23 11 12 12.2 osh-nosouffle mut+alloc+free
23 16 7 10.0 osh-nosouffle mut+alloc+free+gc
23 14 10 10.1 osh-nosouffle mut+alloc+free+gc+exit
24 10 15 13.2 _bin/cxx-opt+nopool/osh mut+alloc
25 10 15 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc