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 34 4 10 12.0 18.7 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 133 23 60 45.9 51.6 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 140 23 57 45.9 52.1 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.3 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 1 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.6 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 7 0 1.7 dash -
13 13 0 3.1 bash -
90 48 50 3.5 zsh -
15 9 7 30.5 bumpleak/osh mut
16 13 3 29.9 _bin/cxx-opt+bumproot/osh mut
18 13 5 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 15 10 25.6 osh-native mut+alloc
28 17 11 25.7 osh-native mut+alloc+free
31 21 10 18.2 osh-native mut+alloc+free+gc
32 27 5 18.2 osh-native mut+alloc+free+gc+exit
28 17 10 25.8 osh-nosouffle mut+alloc
30 16 14 26.2 osh-nosouffle mut+alloc+free
34 29 5 18.7 osh-nosouffle mut+alloc+free+gc
35 29 5 18.7 osh-nosouffle mut+alloc+free+gc+exit
38 21 18 32.1 _bin/cxx-opt+nopool/osh mut+alloc
44 29 15 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 -
327 187 162 3.7 zsh -
45 35 10 85.0 bumpleak/osh mut
48 42 6 86.4 _bin/cxx-opt+bumproot/osh mut
59 45 14 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 49 34 73.8 osh-native mut+alloc
91 58 32 75.5 osh-native mut+alloc+free
133 110 23 51.6 osh-native mut+alloc+free+gc
137 115 22 52.5 osh-native mut+alloc+free+gc+exit
91 62 30 74.2 osh-nosouffle mut+alloc
99 72 27 75.9 osh-nosouffle mut+alloc+free
140 121 19 52.1 osh-nosouffle mut+alloc+free+gc
146 126 20 52.8 osh-nosouffle mut+alloc+free+gc+exit
123 85 38 99.3 _bin/cxx-opt+nopool/osh mut+alloc
199 166 33 71.0 _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.3 bash -
6 1 5 3.4 zsh -
6 3 3 12.8 bumpleak/osh mut
6 3 3 11.4 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 3 10.6 osh-native mut+alloc
8 3 5 10.6 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 6 3 8.9 osh-native mut+alloc+free+gc+exit
9 7 2 10.9 osh-nosouffle mut+alloc
9 6 3 11.1 osh-nosouffle mut+alloc+free
10 5 5 9.3 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 5 6 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.4 _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 -
32 30 2 3.1 bash -
21 17 4 3.4 zsh -
16 13 3 31.7 bumpleak/osh mut
18 14 5 32.9 _bin/cxx-opt+bumproot/osh mut
21 18 3 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 18 9 26.9 osh-native mut+alloc
31 22 9 27.1 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
20 16 4 8.3 osh-native mut+alloc+free+gc+exit
33 23 10 27.3 osh-nosouffle mut+alloc
35 22 13 27.7 osh-nosouffle mut+alloc+free
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc
25 25 0 8.8 osh-nosouffle mut+alloc+free+gc+exit
47 33 14 36.2 _bin/cxx-opt+nopool/osh mut+alloc
30 25 5 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 99 4 3.5 bash -
213 151 62 57.8 bumpleak/osh mut
221 172 49 57.0 _bin/cxx-opt+bumproot/osh mut
238 183 55 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
254 177 77 48.9 osh-native mut+alloc
262 195 66 50.7 osh-native mut+alloc+free
220 173 47 9.0 osh-native mut+alloc+free+gc
220 168 52 9.2 osh-native mut+alloc+free+gc+exit
263 184 78 49.2 osh-nosouffle mut+alloc
265 195 70 51.2 osh-nosouffle mut+alloc+free
227 179 48 9.6 osh-nosouffle mut+alloc+free+gc
228 172 56 9.6 osh-nosouffle mut+alloc+free+gc+exit
278 193 85 65.7 _bin/cxx-opt+nopool/osh mut+alloc
250 191 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 4 5 3.8 dash -
16 6 10 4.8 bash -
15 7 9 4.1 zsh -
17 10 8 12.4 bumpleak/osh mut
18 6 12 12.8 _bin/cxx-opt+bumproot/osh mut
18 9 10 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 10 10 11.7 osh-native mut+alloc
20 11 10 11.8 osh-native mut+alloc+free
20 14 7 9.6 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 10 12 12.3 osh-nosouffle mut+alloc+free
21 12 10 10.0 osh-nosouffle mut+alloc+free+gc
22 14 9 10.2 osh-nosouffle mut+alloc+free+gc+exit
23 7 16 12.9 _bin/cxx-opt+nopool/osh mut+alloc
24 13 11 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc