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.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 128 22 55 45.9 51.6 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 138 22 56 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 9 1 2 2.6 9.2 102,791 180 3 86,636 1 43,318 osh-nosouffle
ex.compute-fib 19 0 1 2.8 8.1 572,115 22,608 12 50,000 0 2,982 osh-native
ex.compute-fib 24 0 2 2.8 8.7 572,115 22,608 12 50,000 0 2,985 osh-nosouffle
ex.bashcomp-parse-help 220 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.4 990,260 15,258 21 50,000 0 3,969 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.6 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
6 6 0 1.7 dash -
13 11 2 3.3 bash -
88 55 41 3.5 zsh -
15 12 3 29.5 bumpleak/osh mut
16 10 6 28.8 _bin/cxx-opt+bumproot/osh mut
19 16 3 30.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 15 10 25.4 osh-native mut+alloc
27 18 9 25.8 osh-native mut+alloc+free
31 23 8 18.2 osh-native mut+alloc+free+gc
31 23 8 18.4 osh-native mut+alloc+free+gc+exit
28 20 8 25.8 osh-nosouffle mut+alloc
29 22 7 26.2 osh-nosouffle mut+alloc+free
33 27 6 18.7 osh-nosouffle mut+alloc+free+gc
34 30 4 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 26 13 32.3 _bin/cxx-opt+nopool/osh mut+alloc
44 37 7 22.5 _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 -
43 42 1 3.5 bash -
320 188 154 3.7 zsh -
44 35 9 86.0 bumpleak/osh mut
48 40 8 86.2 _bin/cxx-opt+bumproot/osh mut
59 43 16 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 54 28 73.6 osh-native mut+alloc
90 55 35 75.6 osh-native mut+alloc+free
128 101 27 51.6 osh-native mut+alloc+free+gc
134 99 35 52.4 osh-native mut+alloc+free+gc+exit
91 57 34 74.1 osh-nosouffle mut+alloc
98 69 29 76.0 osh-nosouffle mut+alloc+free
138 119 19 52.3 osh-nosouffle mut+alloc+free+gc
144 115 29 52.8 osh-nosouffle mut+alloc+free+gc+exit
122 75 47 99.0 _bin/cxx-opt+nopool/osh mut+alloc
184 153 31 73.1 _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.1 bash -
6 3 4 3.4 zsh -
6 3 3 12.3 bumpleak/osh mut
6 5 1 11.7 _bin/cxx-opt+bumproot/osh mut
7 5 2 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
7 3 4 10.5 osh-native mut+alloc
8 3 5 10.6 osh-native mut+alloc+free
9 6 2 8.7 osh-native mut+alloc+free+gc
9 7 2 8.8 osh-native mut+alloc+free+gc+exit
8 6 2 10.9 osh-nosouffle mut+alloc
9 4 5 11.1 osh-nosouffle mut+alloc+free
9 5 5 9.2 osh-nosouffle mut+alloc+free+gc
10 10 0 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 4 7 12.0 _bin/cxx-opt+nopool/osh mut+alloc
11 10 1 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 10 0 1.4 dash -
31 30 1 3.3 bash -
21 17 4 3.4 zsh -
16 12 4 31.8 bumpleak/osh mut
18 13 5 32.6 _bin/cxx-opt+bumproot/osh mut
21 18 3 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 21 7 26.7 osh-native mut+alloc
29 22 8 27.0 osh-native mut+alloc+free
19 17 2 8.1 osh-native mut+alloc+free+gc
20 17 3 8.3 osh-native mut+alloc+free+gc+exit
33 20 13 27.3 osh-nosouffle mut+alloc
35 21 13 27.5 osh-nosouffle mut+alloc+free
24 22 2 8.7 osh-nosouffle mut+alloc+free+gc
24 23 1 8.7 osh-nosouffle mut+alloc+free+gc+exit
45 26 18 36.2 _bin/cxx-opt+nopool/osh mut+alloc
29 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
103 97 6 3.5 bash -
212 163 49 57.1 bumpleak/osh mut
222 170 52 56.4 _bin/cxx-opt+bumproot/osh mut
238 179 58 57.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 183 72 48.9 osh-native mut+alloc
261 190 71 50.7 osh-native mut+alloc+free
220 168 52 9.0 osh-native mut+alloc+free+gc
220 178 42 9.2 osh-native mut+alloc+free+gc+exit
261 201 60 49.3 osh-nosouffle mut+alloc
272 205 67 51.2 osh-nosouffle mut+alloc+free
227 184 43 9.4 osh-nosouffle mut+alloc+free+gc
225 172 53 9.3 osh-nosouffle mut+alloc+free+gc+exit
275 201 75 65.6 _bin/cxx-opt+nopool/osh mut+alloc
249 200 49 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 7 9 4.8 bash -
15 6 10 3.9 zsh -
17 8 9 14.2 bumpleak/osh mut
19 11 8 13.9 _bin/cxx-opt+bumproot/osh mut
19 10 10 13.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 10 9 11.7 osh-native mut+alloc
20 11 9 11.8 osh-native mut+alloc+free
20 15 5 9.6 osh-native mut+alloc+free+gc
21 13 8 9.6 osh-native mut+alloc+free+gc+exit
20 9 11 11.9 osh-nosouffle mut+alloc
21 10 11 12.1 osh-nosouffle mut+alloc+free
21 10 12 10.0 osh-nosouffle mut+alloc+free+gc
21 14 9 10.0 osh-nosouffle mut+alloc+free+gc+exit
23 9 14 13.2 _bin/cxx-opt+nopool/osh mut+alloc
23 9 14 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc