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 4 9 12.0 18.4 471,263 1,282 6 413,142 5 206,571 osh-native
parse.configure-cpython 34 3 9 12.0 18.9 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 143 26 68 45.9 51.9 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 150 27 67 45.9 52.3 1,638,001 4,764 12 1,056,648 6 787,845 osh-nosouffle
parse.abuild 9 1 2 2.6 8.7 102,791 180 3 86,628 1 43,314 osh-native
parse.abuild 10 1 2 2.6 9.2 102,791 180 3 86,636 1 43,318 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.3 572,115 22,608 12 50,000 0 2,982 osh-native
ex.compute-fib 25 0 2 2.8 8.5 572,115 22,608 12 50,000 0 2,985 osh-nosouffle
ex.bashcomp-parse-help 219 0 4 11.6 9.2 990,261 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 227 0 3 11.6 9.7 990,260 15,258 21 50,000 0 3,969 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,219 277 3 83,990 1 41,995 osh-native
ex.abuild-print-help 22 1 2 3.0 10.0 117,218 277 3 83,998 1 41,999 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 1 1.6 dash -
13 12 1 3.3 bash -
88 55 40 3.5 zsh -
16 10 6 30.4 bumpleak/osh mut
16 13 3 30.3 _bin/cxx-opt+bumproot/osh mut
19 12 7 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 18 7 25.4 osh-native mut+alloc
27 12 16 25.8 osh-native mut+alloc+free
31 24 7 18.4 osh-native mut+alloc+free+gc
32 28 4 18.3 osh-native mut+alloc+free+gc+exit
28 16 12 26.0 osh-nosouffle mut+alloc
30 19 11 26.2 osh-nosouffle mut+alloc+free
34 25 9 18.9 osh-nosouffle mut+alloc+free+gc
35 28 7 18.6 osh-nosouffle mut+alloc+free+gc+exit
40 22 18 32.3 _bin/cxx-opt+nopool/osh mut+alloc
45 30 15 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.6 dash -
42 41 1 3.4 bash -
325 198 149 3.8 zsh -
46 35 11 84.9 bumpleak/osh mut
48 39 9 84.9 _bin/cxx-opt+bumproot/osh mut
58 44 14 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 52 31 73.7 osh-native mut+alloc
90 58 32 75.4 osh-native mut+alloc+free
143 123 20 51.9 osh-native mut+alloc+free+gc
146 122 24 52.3 osh-native mut+alloc+free+gc+exit
92 56 36 74.2 osh-nosouffle mut+alloc
101 69 31 76.0 osh-nosouffle mut+alloc+free
150 127 22 52.3 osh-nosouffle mut+alloc+free+gc
151 127 24 53.0 osh-nosouffle mut+alloc+free+gc+exit
129 82 48 98.7 _bin/cxx-opt+nopool/osh mut+alloc
205 166 39 72.9 _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.4 dash -
4 4 0 3.3 bash -
7 5 2 3.4 zsh -
6 3 3 11.6 bumpleak/osh mut
7 3 4 12.7 _bin/cxx-opt+bumproot/osh mut
7 2 5 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.5 osh-native mut+alloc
8 6 2 10.6 osh-native mut+alloc+free
9 5 4 8.7 osh-native mut+alloc+free+gc
9 8 1 8.8 osh-native mut+alloc+free+gc+exit
9 6 3 11.0 osh-nosouffle mut+alloc
9 7 2 11.1 osh-nosouffle mut+alloc+free
10 8 2 9.2 osh-nosouffle mut+alloc+free+gc
10 8 2 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 8 3 12.0 _bin/cxx-opt+nopool/osh mut+alloc
12 9 4 9.6 _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.4 dash -
30 29 1 3.3 bash -
21 15 6 3.5 zsh -
17 15 2 32.2 bumpleak/osh mut
19 14 5 33.6 _bin/cxx-opt+bumproot/osh mut
21 15 6 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 14 14 26.9 osh-native mut+alloc
30 19 11 27.1 osh-native mut+alloc+free
20 16 4 8.3 osh-native mut+alloc+free+gc
20 16 4 8.3 osh-native mut+alloc+free+gc+exit
33 24 9 27.3 osh-nosouffle mut+alloc
35 24 11 27.7 osh-nosouffle mut+alloc+free
25 20 5 8.5 osh-nosouffle mut+alloc+free+gc
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 30 16 36.1 _bin/cxx-opt+nopool/osh mut+alloc
30 26 4 10.0 _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 100 2 3.4 bash -
211 152 58 59.1 bumpleak/osh mut
220 178 42 57.7 _bin/cxx-opt+bumproot/osh mut
238 180 58 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 197 59 48.8 osh-native mut+alloc
265 209 56 50.9 osh-native mut+alloc+free
219 173 46 9.2 osh-native mut+alloc+free+gc
220 164 56 9.0 osh-native mut+alloc+free+gc+exit
262 191 71 49.3 osh-nosouffle mut+alloc
268 191 77 51.3 osh-nosouffle mut+alloc+free
227 178 49 9.7 osh-nosouffle mut+alloc+free+gc
228 178 50 9.7 osh-nosouffle mut+alloc+free+gc+exit
282 208 74 64.1 _bin/cxx-opt+nopool/osh mut+alloc
251 198 53 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 5 3.9 dash -
16 7 9 4.8 bash -
15 6 10 3.9 zsh -
17 9 9 14.1 bumpleak/osh mut
17 9 8 14.3 _bin/cxx-opt+bumproot/osh mut
18 5 14 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 10 10 11.7 osh-native mut+alloc
21 7 14 11.8 osh-native mut+alloc+free
21 10 11 9.4 osh-native mut+alloc+free+gc
21 13 8 9.4 osh-native mut+alloc+free+gc+exit
20 8 13 12.2 osh-nosouffle mut+alloc
23 13 10 12.2 osh-nosouffle mut+alloc+free
22 13 10 10.0 osh-nosouffle mut+alloc+free+gc
22 12 11 10.2 osh-nosouffle mut+alloc+free+gc+exit
23 12 12 13.2 _bin/cxx-opt+nopool/osh mut+alloc
24 10 14 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc