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 32 4 10 12.0 18.2 471,263 1,282 6 413,142 5 206,571 osh-native
parse.configure-cpython 33 3 9 12.0 18.7 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 129 22 56 45.9 51.9 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 137 22 56 45.9 52.4 1,638,001 4,764 12 1,056,648 6 787,845 osh-nosouffle
parse.abuild 9 1 2 2.6 8.5 102,791 180 3 86,628 1 43,314 osh-native
parse.abuild 9 1 2 2.6 9.2 102,791 180 3 86,636 1 43,318 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.3 572,115 22,608 12 50,000 0 2,982 osh-native
ex.compute-fib 24 0 2 2.8 8.8 572,115 22,608 12 50,000 0 2,985 osh-nosouffle
ex.bashcomp-parse-help 221 0 3 11.6 9.0 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 20 1 2 3.0 9.3 117,219 277 3 83,990 1 41,995 osh-native
ex.abuild-print-help 21 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
7 7 0 1.7 dash -
13 12 1 3.3 bash -
89 50 46 3.5 zsh -
15 12 3 28.5 bumpleak/osh mut
16 12 4 30.2 _bin/cxx-opt+bumproot/osh mut
19 13 6 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 16 10 25.7 osh-native mut+alloc
27 21 6 25.8 osh-native mut+alloc+free
32 25 7 18.2 osh-native mut+alloc+free+gc
32 24 8 18.2 osh-native mut+alloc+free+gc+exit
28 20 9 26.0 osh-nosouffle mut+alloc
29 17 13 26.5 osh-nosouffle mut+alloc+free
33 28 5 18.7 osh-nosouffle mut+alloc+free+gc
34 28 7 18.9 osh-nosouffle mut+alloc+free+gc+exit
38 25 13 32.8 _bin/cxx-opt+nopool/osh mut+alloc
43 34 9 22.8 _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.7 dash -
42 41 1 3.5 bash -
325 184 164 3.8 zsh -
45 34 11 85.1 bumpleak/osh mut
48 39 9 86.3 _bin/cxx-opt+bumproot/osh mut
58 44 14 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
81 49 33 73.6 osh-native mut+alloc
91 56 35 75.4 osh-native mut+alloc+free
129 104 25 51.9 osh-native mut+alloc+free+gc
136 116 19 52.3 osh-native mut+alloc+free+gc+exit
91 59 32 74.1 osh-nosouffle mut+alloc
100 72 27 76.0 osh-nosouffle mut+alloc+free
137 116 21 52.4 osh-nosouffle mut+alloc+free+gc
143 121 22 52.8 osh-nosouffle mut+alloc+free+gc+exit
126 79 47 98.3 _bin/cxx-opt+nopool/osh mut+alloc
190 157 32 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 3 1 3.0 bash -
6 4 2 3.4 zsh -
5 3 2 12.6 bumpleak/osh mut
6 4 2 12.7 _bin/cxx-opt+bumproot/osh mut
7 3 4 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.4 osh-native mut+alloc
8 3 5 10.5 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 5 4 8.9 osh-native mut+alloc+free+gc+exit
8 5 4 10.9 osh-nosouffle mut+alloc
9 6 3 11.3 osh-nosouffle mut+alloc+free
9 6 4 9.2 osh-nosouffle mut+alloc+free+gc
10 7 2 9.4 osh-nosouffle mut+alloc+free+gc+exit
11 6 5 12.0 _bin/cxx-opt+nopool/osh mut+alloc
11 8 3 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.1 bash -
21 19 2 3.4 zsh -
16 13 3 31.9 bumpleak/osh mut
18 14 4 33.2 _bin/cxx-opt+bumproot/osh mut
21 14 7 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 16 12 27.0 osh-native mut+alloc
30 22 8 27.1 osh-native mut+alloc+free
20 17 3 8.3 osh-native mut+alloc+free+gc
20 19 1 8.3 osh-native mut+alloc+free+gc+exit
32 20 12 27.3 osh-nosouffle mut+alloc
34 23 11 27.5 osh-nosouffle mut+alloc+free
24 21 3 8.8 osh-nosouffle mut+alloc+free+gc
24 19 5 8.8 osh-nosouffle mut+alloc+free+gc+exit
45 29 16 36.4 _bin/cxx-opt+nopool/osh mut+alloc
29 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 96 7 3.4 bash -
211 163 48 57.2 bumpleak/osh mut
225 177 48 56.9 _bin/cxx-opt+bumproot/osh mut
239 183 55 57.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
255 195 60 48.7 osh-native mut+alloc
262 201 61 50.7 osh-native mut+alloc+free
221 176 45 9.0 osh-native mut+alloc+free+gc
220 165 56 9.2 osh-native mut+alloc+free+gc+exit
263 196 67 49.3 osh-nosouffle mut+alloc
268 195 73 51.2 osh-nosouffle mut+alloc+free
227 179 48 9.7 osh-nosouffle mut+alloc+free+gc
230 179 51 9.4 osh-nosouffle mut+alloc+free+gc+exit
277 193 83 66.0 _bin/cxx-opt+nopool/osh mut+alloc
250 192 58 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 -
15 12 4 4.8 bash -
15 9 7 3.9 zsh -
17 7 10 14.2 bumpleak/osh mut
18 6 13 13.3 _bin/cxx-opt+bumproot/osh mut
18 9 9 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 7 12 11.5 osh-native mut+alloc
20 10 11 11.8 osh-native mut+alloc+free
20 11 10 9.3 osh-native mut+alloc+free+gc
21 10 11 9.7 osh-native mut+alloc+free+gc+exit
20 8 12 11.9 osh-nosouffle mut+alloc
21 9 13 12.3 osh-nosouffle mut+alloc+free
21 15 7 10.0 osh-nosouffle mut+alloc+free+gc
22 12 10 10.1 osh-nosouffle mut+alloc+free+gc+exit
22 13 10 13.1 _bin/cxx-opt+nopool/osh mut+alloc
23 16 7 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc